Столкнулся с той же проблемой и решил:
remove.packages("ggplot2") install.packages('ggplot2', dependencies = TRUE)