跳转到正文

conda创建R环境

返回

conda创建R环境

发布于: 更新于:
统计加载中...

1 创建环境 + 安装 R-base

conda create -n r441 -c conda-forge r-base=4.4.1

2 创建 conda R 虚拟环境

conda create -n r441
# 运行记录
(base) nizhu@cpu-node:~$ conda create -n r441
2 channel Terms of Service accepted
Retrieving notices: done
Channels:
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
 - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
 - defaults
 - dnachun
 - bioconda
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##
  environment location: /home/nizhu/software/miniconda3/envs/r441

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate r441
#
# To deactivate an active environment, use
#
#     $ conda deactivate

3 安装指定 R-base 版本

conda install conda-forge::r-base=4.4.1

4 安装必需的 R 包

conda install conda-forge::r-tidyverse

5 参考资料

  1. r-base - conda-forge | Anaconda.org



评论