problème with ggplot2 package version 4.2.3

Greetings Rstudio community,

I hope my message finds you all fine. I have a small problem. I recently installed R version 4.2.3 on my Windows 10 work laptop. I was trying to install a number of packages like ggplot2, I used the standard install.packages(ggplot2) function I get the following error messages:

The downloaded binary packages are in
C:\Users\HP\AppData\Local\Temp\RtmpSQfpSQ\downloaded_packages

library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’
In addition: Warning message:
package ‘ggplot2’ was built under R version 4.2.3

language R
version.R version 4.2.3

I would appreciate any help on how to solve this package installation problem.

Thank you very much.

Sincerely,
abdelhak

For some reason {colorspace} is not installing.

Try

install.packages("colorspace")

and then try installing {ggplot}.

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.