Hello ! I'm new to R. The message below keeps popping up when i try to install tidyverse or other packages. what is the solution ?

library(tidyverse)
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’
In addition: Warning messages:
1: package ‘tidyverse’ was built under R version 4.2.3
2: package ‘ggplot2’ was built under R version 4.2.3

Hi, try installing that package first.

install.packages("colorspace")

Then try again.

"Tidyverse" was installed. Thank you !
But why does this message pop up -
Warning message:
package ‘tidyselect’ was built under R version 4.2.3

Package " " was built under R version 4.2.3 , what does this mean ?

This happens if you are running an R version that is earlier than 4.2.3. The packages are built using the latest R. It is possible, though not very likely, that the package will not work entirely correctly using an older R version. The bigger the gap, the more likely there will be a problem. It is only a warning, not an error, so there is no need to panic. It is best, however, to keep your R up to date.

2 Likes

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.