运行库时出错(ggplot2)
我刚刚更新到 R 2.11.1,安装 ggplot2 后,我尝试
library(ggplot2)
并得到了
Loading required package: proto
Loading required package: grid Loading
required package: reshape Loading
required package: plyr Loading
required package: digest Error in
eval(expr, envir, enclos) : could not
find function "proto" In addition:
Warning message: In library(package,
lib.loc = lib.loc, character.only =
TRUE, logical.return = TRUE, :
there is no package called 'proto'
Error : unable to load R code in
package 'ggplot2' Error:
package/namespace load failed for
'ggplot2'
任何帮助。
I just updated to R 2.11.1 and after installing ggplot2, I tried
library(ggplot2)
and got
Loading required package: proto
Loading required package: grid Loading
required package: reshape Loading
required package: plyr Loading
required package: digest Error in
eval(expr, envir, enclos) : could not
find function "proto" In addition:
Warning message: In library(package,
lib.loc = lib.loc, character.only =
TRUE, logical.return = TRUE, :
there is no package called 'proto'
Error : unable to load R code in
package 'ggplot2' Error:
package/namespace load failed for
'ggplot2'
Any help appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
install.packages('ggplot2', dep = TRUE)
就可以了...安装proto
包install.packages('ggplot2', dep = TRUE)
would do the trick... installproto
package打开 R shell 并在其中输入以下内容,
然后它会要求您选择镜像,选择最近的一个,它将安装它并解决您的问题。
Open R shell and type following in it
then it will ask you to select the mirror, select closest one and it will install it and solve your problem.
在安装 ggplots2 时也遇到了麻烦,但这里有一个奇怪的解决方案(在 Windows 上测试):
我通过 RStudio 安装。既可以从“工具”->“安装包”中输入,也可以通过输入
install.packages("ggplots2", dep=T)
来实现。它不起作用,因为它一直没有安装依赖项。然后我直接通过 R gui
install.packages("ggplots2", dep=T) 安装,一切顺利。
Also have had troubles, when installing ggplots2, but here is a curious solution (tested on windows):
I installed via RStudio. Both from Tools->install packages and by typing
install.packages("ggplots2", dep=T)
. It didn't work because it kept not installing the dependencies.I then installed direct by R gui
install.packages("ggplots2", dep=T)
and everything went well.我遇到了同样的问题,这解决了问题。
lazyeval
包。I had the same problem and this did the trick.
lazyeval
package.ggplot2
ggplot2
library and everything will hopefully work fine.步骤
1.转到->工具
2.点击->安装包
3.在包文本框中输入ggplot2
选中复选框 &安装依赖项
就可以了!
Steps
1.Go To -> Tools
2.Click -> Install Packages
3.In Packages Text Box Type ggplot2
Check the checkbox & install dependencies
And your good to go !