在Mac上安装软件包'Stringr','reshape2'和'ggplot2'和'rattle'时出错

时间:2018-08-26 17:33:05

标签: r macos rstudio rattle

我不是Mac用户,但我正在尝试帮助一些学生在Mac系统上安装拨浪鼓。我建议他们遵循zhiyzuo post,这是基于Yihui的评论。但是,尽管他们的系统上安装了“ brew”,但他们仍然遇到以下错误:

* installing *source* package ‘stringr’ ...
** package ‘stringr’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in library.dynam(lib, package, package.lib) : 
  shared object ‘stringi.so’ not found
ERROR: lazy loading failed for package ‘stringr’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/stringr’

Warning in install.packages :
  installation of package ‘stringr’ had non-zero exit status
ERROR: dependency ‘stringr’ is not available for package ‘reshape2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/reshape2’
Warning in install.packages :
  installation of package ‘reshape2’ had non-zero exit status
ERROR: dependency ‘reshape2’ is not available for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/ggplot2’
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies ‘ggplot2’, ‘stringr’ are not available for package ‘rattle’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rattle’
Warning in install.packages :
  installation of package ‘rattle’ had non-zero exit status

0 个答案:

没有答案