Error when running library(ggplot2)

后端 未结 4 1101
花落未央
花落未央 2021-01-31 15:44

I just updated to R 2.11.1 and after installing ggplot2, I tried

library(ggplot2)

and got

Loading required package: proto
Loa         


        
相关标签:
4条回答
  • 2021-01-31 16:19

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

    0 讨论(0)
  • 2021-01-31 16:30

    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.

    0 讨论(0)
  • 2021-01-31 16:33

    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.

    0 讨论(0)
  • 2021-01-31 16:33

    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.
    0 讨论(0)
提交回复
热议问题