我正在尝试在Rstudio上安装Rmarkdown。
install.packages("rmarkdown")
我收到包含以下内容的错误消息:
configure: error: in `/private/var/folders/z6/pjv553zn1bb39ldgph2klbt40000gn/T/RtmplQkOZY/R.INSTALL7213 13a123d/stringi':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: configuration failed for package ‘stringi’
(我还会收到其他错误条款,例如
Warning in install.packages :
installation of package ‘stringi’ had non-zero exit status
ERROR: dependency ‘stringi’ is not available for package ‘stringr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/stringr’
在这个问题帖子中,有一些会占用太多空间。)
我有一台Mac OS X Lion 10.7.5,并在我的计算机上下载了一个应该提供C编译器的xcode,但是没有在rstudio中读取。
答案 0 :(得分:1)
先生试试这个:
install.packages("stringi", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
install.packages("stringr", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
然后重新运行install.packages("rmarkdown", dependencies=TRUE)