Problem with install tidyverse

Hi there,
Here are messages I got after installing tidyverse. Can someone help?

Installing package into ‘C:/Users/jliu/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 92557 bytes (90 KB)
downloaded 90 KB

package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘R6’

Hi! Welcome!

The error message is telling you that you don't have the R6 package installed, which tidyverse depends on (or more precisely, one of its sub-packages depends on, since tidyverse is a sort of meta-package that loads other packages).

You can run install.packages("R6") to fix this dependency, but there may be more dependencies missing that you would then have to install one by one after a similar error message. So you might also try install.packages("tidyverse", dependencies = TRUE) to get everything. (But be prepared: this might be quite a few packages!)

1 Like

Thanks a lot! it works now.