I have updated, in this order R (R-4.0.3), RStudio (RStudio-1.3.1093) and rtools (rtools40-x86_64). I accepted all defaults and applied NO custom settings during installation of all 3.
Now, tidyverse and readxl libraries won't load. The problem for both libraries appears to be Rcpp.dll
I have read and applied fixes suggested in multiple RStudio Community posts pertinent to this problem but none of them have fixed my specific problem. I've attempted so many fixes that I'm thoroughly confused and completely flummoxed.
So, I'm making what I hope is not a redundant post and I apologize in advance if it is.
Here are the code and resulting error messages immediately after updating R, Rstudio, and rtools.
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'X:/Users/XXX/Documents/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘tidyverse’ was built under R version 4.0.3
> library(readxl)
Error: package or namespace load failed for ‘readxl’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'X:/Users/XXX/Documents/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
What I have done:
1. I have removed and reinstalled all three packages:
Remove
> remove.packages("tidyverse")
Removing package from ‘X:/Users/XXX/Documents/R/R-4.0.0/library’
(as ‘lib’ is unspecified)
> remove.packages("Rcpp")
Removing package from ‘X:/Users/XXX/Documents/R/R-4.0.0/library’
(as ‘lib’ is unspecified)
> remove.packages("readxl")
Removing package from ‘X:/Users/XXX/Documents/R/R-4.0.0/library’
(as ‘lib’ is unspecified)
Reinstall
> install.packages(c("tidyverse", "readxl", "Rcpp"))
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyverse_1.3.0.zip'
Content type 'application/zip' length 439951 bytes (429 KB)
downloaded 429 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/readxl_1.3.1.zip'
Content type 'application/zip' length 1708931 bytes (1.6 MB)
downloaded 1.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Rcpp_1.0.5.zip'
Content type 'application/zip' length 3265724 bytes (3.1 MB)
downloaded 3.1 MB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
package ‘readxl’ successfully unpacked and MD5 sums checked
package ‘Rcpp’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
X:/Users/XXX\AppData\Local\Temp\Rtmp4Ofx1M\downloaded_packages
I have confirmed that the binary packages are present
2. Following these steps, when I attempt to run the code I received the same error message:
> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'X:/Users/XXX/Documents/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘tidyverse’ was built under R version 4.0.3
and
> library(readxl)
Error: package or namespace load failed for ‘readxl’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'X:/Users/XXX/Documents/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘readxl’ was built under R version 4.0.3
I confirmed that the shared object 'X:/Users/XXX/Documents/R/R-4.0.0/library/Rcpp/libs/x64/Rcpp.dll' is present in the specified directory:
I'm stumped
Does anyone have any suggestions?