登录 注册
其他
346
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Lua
语言
—
创建时间
最近更新

项目能做什么

用于在 Neovim 中高效编写与编辑 R 语言代码的插件。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
![GitHub Release](https://img.shields.io/github/v/release/R-nvim/R.nvim)
![Selene linter check](https://github.com/R-Nvim/R.nvim/actions/workflows/selene.yml/badge.svg)
[![CI](https://github.com/R-nvim/R.nvim/actions/workflows/ci.yml/badge.svg)](https://github.com/R-nvim/R.nvim/actions/workflows/ci.yml)

# R.nvim

> [!Note]
> Vim-R users should read the release notes of [version 1.0.0](https://github.com/R-nvim/R.nvim/releases/tag/v1.0.0).

R.nvim adds R support to Neovim, including:

- Communication with R via Neovim's built-in terminal or tmux

- A built-in object explorer and autocompletions built from your R environment

- Keyboard shortcuts for common inserts like `<-` and `|>`

- Quarto/R Markdown/Rtypst support

- ...And much more!

<p align="center">
    <img style="width: 800px" src="screenshot.png">
</p>

The `R.nvim` directory has four different things:

  - A R package (subdirectory `nvimcom`).

  - The C code of an language server for R (subdirectory `rnvimserver`).

  - A tree-sitter parser for `.Rout` files (Git submodule `tree-sitter-rout`
    in the subdirectory `resources`).

  - A Lua plugin for Neovim (most of everything else).

R.nvim automatically:

 - builds and install the R package `nvimcom`;
 - compiles the `rnvimserver` binary in the `rnvimserver` directory;
 - generates the `rout` parser and installs it in the `parser` subdirectory.

## Installation

The `R.nvim` repository must be cloned with its submodule `tree-sitter-rout`.
If your plugin manager does not clone the submodules, you can clone the
repository manually with this command:

```sh
git clone --recurse-submodules https://github.com/R-nvim/R.nvim
```

Please, see the list of dependencies at section 3.1 of
[doc/R.nvim.txt](https://github.com/R-nvim/R.nvim/blob/main/doc/R.nvim.txt).

Here's a (very) minimal configuration using
[lazy.nvim](https://github.com/folke/lazy.nvim) (not including `R.nvim`
dependencies):

```lua
{
    "R-nvim/R.nvim",
     -- Only required if you also set defaults.lazy = true
    lazy = false
},
```

A longer example adding some custom behaviour:

```lua
{
    "R-nvim/R.nvim",
     -- Only required if you also set defaults.lazy = true
    lazy = false,
    -- R.nvim is still young and we may make some breaking changes from time
    -- to time (but also bug fixes all the time). If configuration stability
    -- is a high priority for you, pin to the latest minor version, but unpin
    -- it and try the latest version before reporting an issue:
    -- version = "~0.1.0"
    config = function()
        -- Create a table with the options to be passed to setup()
        ---@type RConfigUserOpts
        local opts = {
            hook = {
                on_filetype = function()
                    vim.api.nvim_buf_set_keymap(0, "n", "<Enter>", "<Plug>RDSendLine", {})
                    vim.api.nvim_buf_set_keymap(0, "v", "<Enter>", "<Plug>RSendSelection", {})
                end
            },
            R_args = {"--quiet", "--no-save"},
 
阅读完整原文

项目深度分析 规则生成(AI 未配置)

综合评分 41.7 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 15.0 分,差异化空间 45.0 分(评分依据见评分卡)。

面向细分需求的二次开发产品

产品构想基于 R.nvim 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 9 个 Release
社区活跃Star 346 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。