是否有较轻版本的 Rstudio 可用?

Is there a lighter version of Rstudio available?

我喜欢使用 Rstudio 并且主要使用 Rmarkdown 文件之类的笔记本,但不幸的是我必须在没有太多 ram 和计算能力的旧系统上工作。

我注意到 pandoc 占用了我系统中的大量资源,所以我开始重新研究 jupyter lab,即使是 R 也能正常工作。

但是对于 R 内核 jupyter 它有自己的挑战,比如 %>% 没有快捷方式,没有工具提示等

那么有没有更轻量级的 Rstudio 版本可用?

恐怕不是,伙计...我认为 RStudio Desktop 应该具有可选功能。至少那些较重的。因此,不需要 Git/Connections/Environment 浏览器、rmarkdown 预览或许多其他功能的用户,他们可以简单地禁用这些。

在没有太多资源的系统上使用 RStudio 的一种可能性是 运行 好的系统上的服务器版本,并通过网络访问它。

设置服务器并不简单,但您可以使用 https://rstudio.cloud。它对小型项目免费(每月最多 15 小时)。如果您是认可机构的讲师,价格会很低。

你提到的JupyterLab的局限性是可以克服的:

  • 可以通过安装(我的)扩展来启用工具提示和其他编码辅助功能jupyterlab-lsp

  • 自定义快捷方式,如插入 >%><- 可以是 easily enabled,在 Keyboard Shortcut 设置中粘贴以下内容(参见 link了解更多详情):

      {
          "command": "apputils:run-first-enabled",
          "selector": "body",
          "keys": ["Alt -"],
          "args": {
              "commands": [
                  "console:replace-selection",
                  "fileeditor:replace-selection",
                  "notebook:replace-selection",
              ],
              "args": {"text": "<- "}
          }
      },
      {
          "command": "apputils:run-first-enabled",
          "selector": "body",
          "keys": ["Accel Shift M"],
          "args": {
              "commands": [
                  "console:replace-selection",
                  "fileeditor:replace-selection",
                  "notebook:replace-selection",
              ],
              "args": {"text": ">%> "}
          }
      }
    

事实是,添加扩展不会让 JupyterLab 更轻便。由于 RStudio 和 JupyterLab 都是为类似的用例构建的,因此它们将不断发展以满足用户的需求(只要硬件性能的改进允许)。

这两个应用程序都支持 extension/plugin 系统,允许您启用或禁用其他功能。可能最有趣的方法是 retrolab which takes a subset of the JupyterLab components and arranges them for the look and feel of the old Jupyter Notebook interface. You can do the same (see example app 采取的方法,它仅使用 JuptyterLab 组件的最小子集从头开始构建),或者只是禁用一些默认启用的扩展。