我一直在为模拟项目开发 R 包,在家里的电脑上我使用 RStudio 成功构建和安装它。但是在大学的另一台机器上我遇到了麻烦......如果我尝试在 RStudio 中构建一个二进制文件,它也会安装它,我会收到一个错误,如果我只是编译一个源以获得 .tar.gz 它可以工作,但是当我来安装时,我再次收到错误。两次出现错误的读数如下。我认为它与库有关,但是为什么这与我不知道的家用计算机不同,我不是程序员,并且在这台机器上安装 R 和 RTools 和 RStudio 的方式与我个人的完全相同机器。- 我有几天的管理员访问权限。
install.packages("speEaR_1.0.tar.gz", repos=NULL, type="source")
Installing package(s) into ‘\\ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
* installing *source* package 'speEaR' ...
** R
** preparing package for lazy loading
** help
Warning: C:/Users/yrq12edu/AppData/Local/Temp/Rtmp84HJPx/R.INSTALL7e81a241d97/speEaR/man/makeSetMatrix.Rd:25: unknown macro '\begin'
Warning: C:/Users/yrq12edu/AppData/Local/Temp/Rtmp84HJPx/R.INSTALL7e81a241d97/speEaR/man/makeSetMatrix.Rd:26: unknown macro '\item'
Warning: C:/Users/yrq12edu/AppData/Local/Temp/Rtmp84HJPx/R.INSTALL7e81a241d97/speEaR/man/makeSetMatrix.Rd:30: unknown macro '\end'
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
no library trees found in 'lib.loc'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
no library trees found in 'lib.loc'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15/speEaR'
Warning messages:
1: running command 'C:/PROGRA~1/R/R-215~1.2/bin/i386/R CMD INSTALL -l "\\ueahome5/ressci17/yrq12edu/data/Documents/R/win-library/2.15" "speEaR_1.0.tar.gz"' had status 1
2: In install.packages("speEaR_1.0.tar.gz", repos = NULL, type = "source") :
installation of package ‘speEaR_1.0.tar.gz’ had non-zero exit status