From d62bb39ecb5f8fcb5602888b7b1ea38e6c56c3f8 Mon Sep 17 00:00:00 2001 From: Steven Hobs Date: Mon, 24 Mar 2025 20:47:58 +0800 Subject: [PATCH] =?UTF-8?q?conda=20base=20=E7=8E=AF=E5=A2=83=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 12 +++++------- README.md | 9 ++++++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index e755f52..e88633c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,13 +1,11 @@ /* VSCode 项目配置 */ { - "r.rpath.linux": ".conda/bin/R", - "r.libPaths": [ - ".conda/bin/R/library" - ], - "r.rterm.linux": "${workspaceFolder}/.conda/bin/radian", + "r.rpath.linux": "${env:RSTUDIO_WHICH_R}/R", + "r.rterm.linux": "radian", "r.rterm.option": [ "--no-save", - "--no-restore" + "--no-restore", + "--r-binary=${env:RSTUDIO_WHICH_R}/R" ], "r.plot.useHttpgd": true, "r.lsp.diagnostics": true, @@ -22,7 +20,7 @@ "editor.defaultFormatter": "REditorSupport.r", "editor.formatOnSave": true }, - "terminal.integrated.defaultProfile.linux": "R Terminal", + // "terminal.integrated.defaultProfile.linux": "R Terminal", // 启用 R控制台 为默认终端 "files.eol": "\n", "editor.tabSize": 2, "editor.detectIndentation": false diff --git a/README.md b/README.md index 4f6e244..587e9b5 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,16 @@ ## 操作步骤 + > [!NOTE] + > 此`conda-base`分支为调用conda的base环境作为R安装配置环境,请留意终端Shell是否处于base环境中 + 0. 克隆本项目到指定的位置 `git clone https://git.unvec.site/stevenhobs/R-with-Conda <项目路径>` 1. 初始化conda虚拟环境 - `conda create -p .conda -c conda-forge r-base r-languageserver r-devtools r-httpgd radian` + `conda create -c conda-forge r-base r-languageserver r-devtools r-httpgd radian` 2. 初始化R Debugger @@ -41,8 +44,8 @@ 在当前的conda环境下, - 使用`conda search -p .conda -c conda-forge r-包名` 搜索对应的包 + 使用`conda search -c conda-forge r-包名` 搜索对应的包 - 使用`conda install -p .conda -c conda-forge r-包名` 安装对应的包 + 使用`conda install -c conda-forge r-包名` 安装对应的包 或者采用R通用的安装(CRAN)