1.复制旧的R包到新的R library里面
cp -r /home/username/miniconda3/lib/R/library /home/username/miniconda3/envs/r403/lib/R/library
cd /home/username/miniconda3/envs/r403/lib/R/library
cd library
mv * ../
2.进入r403环境
conda activate r403
R
3. 更新迁移后的包
update.packages(checkBuilt=TRUE, ask=FALSE)
4. 查看更新结果代码
version
packageStatus()
网友评论