tidyverse installing problems

After installing the tidyverse package, I got

Installing package into ‘C:/Users/user/AppData/Local/R/win-library/4.3’
(as ‘lib’ is unspecified)
probando la URL 'https://mirrors.nics.utk.edu/cran/bin/windows/contrib/4.3/tidyverse_2.0.0.zip'
Content type 'application/zip' length 430800 bytes (420 KB)
downloaded 420 KB

package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\user\AppData\Local\Temp\Rtmpclsd8C\downloaded_packages

However, after loading the library, I got:

Error: package or namespace load failed for ‘tidyverse’:
.onAttach failed in attachNamespace() for 'tidyverse', details:
call: NULL
error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’

Do you know how I can troubleshoot this issue?

Apparently, a dependency of ggplot2 is missing. install.packages() is not very good at installing all dependencies. You can try to install colorspace (and the other missing dependencies, potentially) manually.

Or you can try pak, which will install all dependencies:

install.packages("pak")
pak::pkg_install("tidyverse")

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.