我需要使用packrat
来为R创建一种虚拟环境。我运行了以下几行
mywd<-getwd()
packrat::init(mywd)
packrat::set_opts(auto.snapshot=TRUE)
R输出显示一切正常
Initializing packrat project in directory:
- "C:/Users/marco.fumagalli/TEST_PACKRAT"
Adding these packages to packrat:
_
packrat 0.4.9-3
Fetching sources for packrat (0.4.9-3) ... OK (CRAN current)
Snapshot written to "C:/Users/marco.fumagalli/TEST_PACKRAT/packrat/packrat.lock"
Installing packrat (0.4.9-3) ...
OK (downloaded binary)
Initialization complete!
Restarting R session...
然后,我尝试使用lubridate
安装install.packages
软件包。软件包几乎没有依赖项(magrittr
,stringi
,stringr
,Rcpp
和glue
),并且安装所有内容都花费了20多分钟的时间。不寻常。
这些是我会话的基本信息
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)