Some others mentioned the problem so here is the solution: install.packages("ggplot2", dependencies = TRUE) for some reason the ggplot2 does not work with actual R version . installing it with dependencies will install all that is needed.