have problems loading ggplot2 package

 library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 namespace ‘scales’ 1.2.1 is already loaded, but >= 1.3.0 is required

that's what I am getting.

its asking you to upgrade your versions of the scales package.
you can do

install.packages("scales")

Thank you so much for your response.
having done that I am now getting this;
installed.packages("ggplots2")
Package LibPath Version Priority
Depends Imports LinkingTo Suggests
Enhances License License_is_FOSS
License_restricts_use OS_type
Archs MD5sum NeedsCompilation
Built

Thank you so much, I had to go back to installing tidyverse and then scales and it worked.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.