1、R project:加载数据和脚本不需要设置文件夹;打包project文件夹后发给别人,在另外一个环境中,点击.Rproj文件即可运行。

2、下载原始R包,进行补充和修改。

https://cran.r-project.org/web/packages/available_packages_by_name.htmlhttps://cran.r-project.org/web/packages/available_packages_by_name.html从上述网站查找R包,下载。tar.gz文件,解压后编辑R文件内的脚本。

3、实现批量安装包

ip<-function(x){install.packages(x)}pa=c("httr2","digest","jsonlite","openssl", "rentrez","rlang","SSEparser","utils", "uuid","yulab.utils")sapply(pa,ip)