Ggplot2 Installation Error


#1

Hey everyone, new programmer here doing a school project. Need ggplot2 and eventually caret to complete it, but the below is coming up when I try to install ggplot2.

> library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 namespace ‘pillar’ 1.0.1 is being loaded, but >= 1.1.0 is required

Checked to make sure my RStudio is up to date and it is. If anyone has any suggestions it would be much appreciated!


#2

Try updating pillar to 1.1.0 and then try loading ggplot2 again.