Step1 創(chuàng)建虛擬環(huán)境
# 在Linux環(huán)境下
conda create -n renv # 創(chuàng)建環(huán)境
conda activate renv # 激活環(huán)境
conda deactivate # 退出環(huán)境
Step2 安裝R語言
# 安裝R 4.1.4 版本
conda install -c conda-forge r-base=4.1.4
Step3 安裝R包
# 假設安裝glmnet包
conda install -c conda-forge r-glmnet
# 假設安裝IRkernel包
conda install -c conda-forge r-IRkernel
文章來源地址http://www.zghlxwxcb.cn/news/detail-593659.html
文章來源:http://www.zghlxwxcb.cn/news/detail-593659.html
到了這里,關于在服務器(Linux)中安裝 R語言環(huán)境以及R包(非root用戶也可以)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!