Error when running library(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.
install.packages('ggplot2', dep = TRUE)
would do the trick... install proto
package
Open R shell and type following in it
install.packages('ggplot2', dep = TRUE)
then it will ask you to select the mirror, select closest one and it will install it and solve your problem.
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.
I had the same problem and this did the trick.
- Install the
lazyeval
package. - Then install
ggplot2
- Load the
ggplot2
library and everything will hopefully work fine.
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 !
精彩评论