36

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.

4
  • Did you try install.packages("proto") after getting this? Commented Jun 28, 2010 at 16:06
  • 1
    You are probably missing the proto package. Have you tried to install it? Commented Jun 28, 2010 at 16:07
  • My experience was that library(ggplot2) loaded fine but a call to ggsave() would generate an error about 'digest' as a missing package. The solution below fixed my issue as well. Commented Feb 10, 2016 at 21:42
  • Related post: How should I deal with “package 'xxx' is not available (for R version x.y.z)” warning? Commented Jul 7, 2016 at 7:42

5 Answers 5

78

install.packages('ggplot2', dep = TRUE) would do the trick... install proto package

Sign up to request clarification or add additional context in comments.

Comments

22

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.

Comments

3

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.

Comments

1

I had the same problem and this did the trick.

  1. Install the lazyeval package.
  2. Then install ggplot2
  3. Load the ggplot2 library and everything will hopefully work fine.

Comments

1

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 !

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.