尝试在 R 中安装“Rook”包时出现以下错误:
** package ‘Rook’ successfully unpacked and MD5 sums checked
** libs
sh: 1: -f: not found
ERROR: compilation failed for package ‘Rook’
* removing ‘/usr/lib/R/site-library/Rook’
The downloaded packages are in
‘/tmp/RtmpPW6kC2/downloaded_packages’
Warning message:
In install.packages("Rook", repos = "http://cran.r-project.org") :
installation of package ‘Rook’ had non-zero exit status
我使用 install.packages() 函数和终端安装包,但收到相同的消息。有任何想法吗?
操作系统:Ubuntu 12.04。