Hello, I am trying to use ggplot2 and cannot install the package correctly in Rstudio (Windows). When I try load the package it reads:
Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘crayon’
When I try to install crayon I get this error:
Installing package into ‘C:/Users/david/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
crayon 1.4.2 1.5.0 FALSE
installing the source package ‘crayon’
trying URL 'https://cloud.r-project.org/src/contrib/crayon_1.5.0.tar.gz'
Content type 'application/x-gzip' length 40099 bytes (39 KB)
downloaded 39 KB
The downloaded source packages are in
‘C:\Users\david\AppData\Local\Temp\RtmpOELFMb\downloaded_packages’
Warning message:
In install.packages("crayon") :
installation of package ‘crayon’ had non-zero exit status
Any help would be much appreciated!
David