Problems with loading ggplot2

Hi Hermes,

Here's a stackoverflow post that seems related:

One suggestion there is to first install ggplot2 explicitly installing all dependencies

install.packages(
   "ggplot2",
   repos = c("http://rstudio.org/_packages",
   "http://cran.rstudio.com")
)
#> You may also find it useful to restart R,
#> In RStudio, that's the menu Session >> Restart R

library(ggplot2)

Welcome to community!

Also, when posting code here (or any coding forum), be sure to format your code. This makes it easier for readers to read your post, making it more likely for you to get help. Some tips: FAQ: How to format your code

And this isn't really a RStudio IDE question, it's an R question. So I'm going to move it to the General category.

1 Like