loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:没有名为'stringi'的包 [英] Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'stringi'
问题描述
library(Hmisc)
我得到以下错误:
loadNamespace(i,c lib.loc,.libPaths()),versionCheck = vI [[i]]):没有名为'stringi'的包
错误:无法加载包'ggplot2'
同样,如果我使用
library(ggplot2)
我得到以下错误:
loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]]中的错误):没有名为'stringi'的包
错误:'ggplot2'包或名称空间加载失败
我尝试安装' stringi'
install.packages(stringi)
但在某些时候,在安装过程中,我收到以下错误消息:
configure:error:in`/ private / var / folders / pr / wdr5dvjj24bb4wwnjpg1h ndc0000gr / T / RtmpeQ5pXk / R.INSTALL10b94a012cab / stringi':
configure:error:在$ PATH中找不到可接受的C编译器
有关更多详细信息,请参阅`config.log'
错误:配置失败包'stringi'
*删除'/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)
When I use
library(Hmisc)
I get the following error
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'stringi'
Error: package 'ggplot2' could not be loaded
As well, if I use
library(ggplot2)
I get the following error
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called 'stringi'
Error: package or namespace load failed for 'ggplot2'
I've tryed to install 'stringi' install.packages("stringi")
But at some point, during the installation, I get the following error message:
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'
I'm using RStudio (Version 0.99.447) and I have R version 3.2.1.
I got this error while trying to load the swirl package.
You can try to re install the package directly from cran and include an argument to ensure all the dependant packages are included.
install.packages("swirl", repos="http://cran.rstudio.com/", dependencies=TRUE)
这篇关于loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:没有名为'stringi'的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!