我想尝试packrat,但在项目初始化时遇到警告和错误消息:
> library(packrat)
> packrat::init()
Initializing packrat project in directory:
- "\\userhome/myuser/R_scripts/ratpack_test"
Adding these packages to packrat:
_
packrat 0.4.8-1
Fetching sources for packrat (0.4.8-1) ... OK (CRAN current)
Snapshot written to "\\userhome/myuser/R_scripts/ratpack_test/packrat/packrat.lock"
Installing packrat (0.4.8-1) ...
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/packrat_0.4.8-1.zip'
Content type 'application/zip' length 192726 bytes (188 KB)
downloaded 188 KB
OK (downloaded binary)
Initialization complete!
Warning message:
In Sys.junction(from, to) :
cannot set reparse point '\\userhome/myuser/R_scripts/ratpack_test/packrat/lib-R/base', reason 'Incorrect function'
Restarting R session...
Error in ensurePackageSymlink(source, target) :
Target '\\userhome/myuser/R_scripts/ratpack_test/packrat/lib-R/base' already exists and is not a symlink
它说cannot set reparse point 'my_custom_path', reason 'Incorrect function'
和Target already exists and is not a symlink
。有没有人经历过类似的行为?我正在运行R 3.2.0和Windows10。
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
locale:
[1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland.1252 LC_MONETARY=German_Switzerland.1252 LC_NUMERIC=C
[5] LC_TIME=German_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] packrat_0.4.8-1
loaded via a namespace (and not attached):
[1] tools_3.2.0