Problem with Tidyverse 1.2.1 and R 3.5.1

install

#1

Please ignore this problem ... I see the issue.

Tidyverse wants an updated dplyr to install, but doing so, does not seem to help (below).

Steve

library("tidyverse", lib.loc="C:/Program Files/R/R-3.5.1/library")

Error: package or namespace load failed for ‘tidyverse’:
package ‘dplyr’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

install.packages("dplyr")
Installing package into ‘U:/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/dplyr_0.7.6.zip'
Content type 'application/zip' length 3053092 bytes (2.9 MB)
downloaded 2.9 MB

package ‘dplyr’ successfully unpacked and MD5 sums checked

library("tidyverse", lib.loc="C:/Program Files/R/R-3.5.1/library")
Error: package or namespace load failed for ‘tidyverse’:
package ‘dplyr’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version


#2

Hi Steve - looks like you are installing dplyr into the "U:/Documents/R/win-library/3.5" directory, but then loading tidyverse from the "C:/Program Files/R/R-3.5.1/library" directory. So the new dplyr you installed isn't being called - the one in "C:/Program Files/R/R-3.5.1/library" is. If you want to have your packages located in "C:/Program Files/R/R-3.5.1/library" there are a couple of things you could try:

install.packages("dplyr",  lib = 'C:/Program Files/R/R-3.5.1/library')
library("tidyverse", lib.loc="C:/Program Files/R/R-3.5.1/library")

If you are still having trouble with that, I'd just try to redownload the tidyverse packages using

install.packages("tidyverse",  lib = 'C:/Program Files/R/R-3.5.1/library')
library("tidyverse", lib.loc="C:/Program Files/R/R-3.5.1/library")

cheers.


#3