Trouble installing and loading Tidyverse

I'm trying to load Tidyverse into a script for some data analysis, but I'm running into this error that I can't even begin to parse on my own:

Error: package or namespace load failed for ‘tidyverse’ in inDL(x, as.logical(local), as.logical(now), ...):
 unable to load shared object 'C:/Users/syu01/Documents/R/win-library/4.1/xml2/libs/x64/xml2.dll':
  LoadLibrary failure:  %1 is not a valid Win32 application.
In addition: Warning message:
package ‘tidyverse’ was built under R version 4.1.2 

I have no idea how to resolve this. I suspect it might have something to do with the fact that I set a different working directory prior to the install, since I have never had problems with working with any of the other constituent packages of the tidyverse until now on my machine.

Try reinstalling the xml2 package


Do you get any error message while doing so?

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.