我试图安装一个R包,它是作为压缩的.zip文件发送给我的,我解压缩了;它的内容如下:
$ ls -a testingneutrality
.
..
.DS_Store
.Rbuildignore
.Rhistory
.Rproj.user
.git
.gitignore
DESCRIPTION
NAMESPACE
R
data
figure
testingneutrality.Rproj
vignettes
阅读these instructions后,我尝试了:
R CMD INSTALL -l /path/to/library testingneutrality
产生了警告,表明我的问题与安装脚本有关:
** preparing package for lazy loading
Warning in readChar(con, 5L, useBytes = TRUE) :
cannot open compressed file '/Users/marcwilliams/Google Drive/early_events/testingneutrality/data/testdata.RData', probable reason 'No such file or directory'
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
我不知道Marc Williams
是谁,但我的机器上并没有确切的路径;存在的是相对路径:/testingneutrality/data/testdata.RData
。
似乎要做的是在安装脚本中更改此路径,但我不知道它是如何工作的。任何帮助将不胜感激。
如果重要:
> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X Yosemite 10.10.5
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.3.3