Compare commits

..

3 Commits

Author SHA1 Message Date
Steven Hobs
c02bde7e4a 增加两个基础R包 2025-03-24 20:57:25 +08:00
Steven Hobs
6dc76e23b8 注释掉 默认终端使用R Terminal 2025-03-24 20:37:11 +08:00
Steven Hobs
c009d12576 修正radian的调用 2025-03-24 20:35:29 +08:00
2 changed files with 7 additions and 10 deletions

View File

@ -1,11 +1,11 @@
/* VSCode */
{
"r.rpath.linux": "${env:HOME}/miniconda3/bin/R",
"r.rterm.linux": "radian",
"r.rpath.linux": "${workspaceFolder}/.conda/bin/R",
"r.rterm.linux": "${workspaceFolder}/.conda/bin/radian",
"r.rterm.option": [
"--no-save",
"--no-restore",
"--r-binary=${env:HOME}/miniconda3/bin/R"
"--r-binary=${workspaceFolder}/.conda/bin/R"
],
"r.plot.useHttpgd": true,
"r.lsp.diagnostics": true,
@ -20,7 +20,7 @@
"editor.defaultFormatter": "REditorSupport.r",
"editor.formatOnSave": true
},
// "terminal.integrated.defaultProfile.linux": "R Terminal", // R
// "terminal.integrated.defaultProfile.linux": "R Terminal", # R
"files.eol": "\n",
"editor.tabSize": 2,
"editor.detectIndentation": false

View File

@ -18,16 +18,13 @@
## 操作步骤
> [!NOTE]
> 此`conda-base`分支为调用conda的base环境作为R安装配置环境请留意终端Shell是否处于base环境中
0. 克隆本项目到指定的位置
`git clone https://git.unvec.site/stevenhobs/R-with-Conda <项目路径>`
1. 初始化conda虚拟环境
`conda create -c conda-forge r-base r-languageserver r-devtools r-httpgd r-rlang r-jsonlite radian`
`conda create -p .conda -c conda-forge r-base r-languageserver r-devtools r-httpgd r-rlang r-jsonlite radian`
2. 初始化R Debugger
@ -44,8 +41,8 @@
在当前的conda环境下
使用`conda search -c conda-forge r-包名` 搜索对应的包
使用`conda search -p .conda -c conda-forge r-包名` 搜索对应的包
使用`conda install -c conda-forge r-包名` 安装对应的包
使用`conda install -p .conda -c conda-forge r-包名` 安装对应的包
或者采用R通用的安装CRAN