rcpp安装问题 - 找不到命令

时间:2017-07-29 00:46:14

标签: rstudio rcpp

在装有Sierra OS的Mac和最新版本的xcode命令行工具和r / rstudio上,尝试安装rcpp时出现以下错误。这是路径问题吗?任何帮助将不胜感激!

> install.packages("Rcpp", type = "source")
trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_0.12.12.tar.gz'
Content type 'application/x-gzip' length 2421289 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
sh: mv: command not found
** libs
sh: make: command not found
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rcpp’
sh: rm: command not found
Warning in install.packages :
  installation of package ‘Rcpp’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/hn/zpnk2qsx19x1y974vym8wr7r0000gn/T/RtmptRz4Oe/downloaded_packages’

0 个答案:

没有答案
相关问题