问题:
我只是想从源代码构建一些包并遇到错误
错误:“tools:::.test_load_package('rbenchmark', '\per-homedrive1.corp.something.org/homedrive$/Tommy.O'Dell”中出现意外符号
下面的完整输出:
C:\ROracle>R CMD INSTALL --build --merge-multiarch rbenchmark_1.0.0.tar.gz
install for i386
* installing to library '\\per-homedrive1.corp.something.org/homedrive$/Tommy.O'Dell/R/win-library/2.15'
* installing *source* package 'rbenchmark' ...
** package 'rbenchmark' successfully unpacked and MD5 sums checked
** R
** demo
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: unexpected symbol in "tools:::.test_load_package('rbenchmark', '\\per-homedrive1.corp.something.org/homedrive$/Tommy.O'Dell"
Execution halted
ERROR: loading failed
* removing '\\per-homedrive1.corp.something.org/homedrive$/Tommy.O'Dell/R/win-library/2.15/rbenchmark'
问题:
- 错误是否来自路径中的撇号 (
'
) ?O'Dell
- 如果是,这是一个错误,因为它没有转义目录中的撇号吗?
- 它是否试图安装到我的默认库中?
- 如果是,我可以将库更改为参数
R CMD INSTALL
吗? - 如果我不能指定库,我应该完全删除该库吗?
额外信息:
这是输出.libPaths()
[1] "\\\\per-homedrive1.corp.something.org/homedrive$/Tommy.O'Dell/R/win-library/2.15"
[2] "C:/Program Files/R/R-2.15.2/library"
[3] "C:/Program Files/RStudio/R/library"