Error: package or namespace load failed for ‘readr’

When I tried to use the readr library, I'm getting the following error. Please let me know how to troubleshoot this.

library(readr)
Error: package or namespace load failed for ‘readr’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/Mahan/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘readr’ was built under R version 4.0.2

Thanks in advance
M

Try

install.packages("Rcpp")

There is a known bug in R 4.0.0 that prevents you from using Rcpp. Please upgrade to R 4.0.2.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

Looks like I still have the same issue:

install.packages("Rcpp")
Installing package into ‘C:/Users/Mahan/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/Rcpp_1.0.5.zip'
Content type 'application/zip' length 3266037 bytes (3.1 MB)
downloaded 3.1 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Mahan\AppData\Local\Temp\Rtmp2DdNKU\downloaded_packages

library(readr)
Error: package or namespace load failed for ‘readr’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/Mahan/Documents/R/win-library/4.0/Rcpp/libs/x64/Rcpp.dll':
LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘readr’ was built under R version 4.0.2

can you tell me what happens when you do

library("Rcpp")

I'm currently using the newest version of R studio.

Rstudio is an Integrated Development Environment to support programming in R, its different from the R language itself.
the newest version of RStudio is 1.3.1056
the newest version of R is 4.0.2

1 Like