参见英文答案 >
lib unspecified & Error in loadNamespace4个
> package ‘stringi’ does not work after updating to R3.2.16个
我用的时候
> package ‘stringi’ does not work after updating to R3.2.16个
我用的时候
library(Hmisc)
我收到以下错误
Error in loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI[[i]]) : there is no package called 'stringi'
Error: package 'ggplot2' Could not be loaded
同样,如果我使用
library(ggplot2)
我收到以下错误
Error in loadNamespace(i,versionCheck = vI[[i]]) : there is no package called 'stringi'
Error: package or namespace load Failed for 'ggplot2'
我试过安装’stringi’
install.packages( “stringi”)
但在某些时候,在安装过程中,我收到以下错误消息:
configure: error: in `/private/var/folders/pr/wdr5dvjj24bb4wwnjpg1hndc0000gr/T/RtmpeQ5pXk/R.INSTALL10b94a012cab/stringi':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: configuration Failed for package 'stringi'
* removing '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/stringi'
我正在使用RStudio(版本0.99.447),我有R版本3.2.1.
解决方法
我在尝试加载漩涡包时遇到了这个错误.
您可以尝试直接从cran重新安装包,并包含一个参数以确保包含所有依赖包.
install.packages("swirl",repos="http://cran.rstudio.com/",dependencies=TRUE)