profile
viewpoint

Ask questionsTrouble loading Rcpp into R 4.0

I am having trouble getting Rcpp to load in R 4.0--the latest version of Rcpp was released before R 4.0 was released and so I am wondering whether I just need to wait for an update. Any thoughts would be appreciated!

I am able to install it: install.packages("Rcpp", repo="http://archive.linux.duke.edu/cran/")

Warning in install.packages : unable to access index for repository https://cran.rstudio.com/src/contrib: cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES' WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ‘C:/Users/mes86/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) trying URL 'http://archive.linux.duke.edu/cran/bin/windows/contrib/4.0/Rcpp_1.0.4.6.zip' Content type 'application/zip' length 3167934 bytes (3.0 MB) downloaded 3.0 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in C:\Users\mes86\AppData\Local\Temp\1\Rtmp8a85Fi\downloaded_packages

##but am unable to load it into my library library(Rcpp) Error: package or namespace load failed for ‘Rcpp’ in inDL(x, as.logical(local), as.logical(now), ...): unable to load shared object 'C:/Users/mes86/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 ‘Rcpp’ was built under R version 4.0.2

RcppCore/Rcpp

Answer questions eddelbuettel

Actually we learned about

##but am unable to load it into my library
library(Rcpp)
Error: package or namespace load failed for ‘Rcpp’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/mes86/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 ‘Rcpp’ was built under R version 4.0.2

the other day. Apparently an inadvertent change within R. It blocks Rcpp in R 4.0.0 on Windows, we were told it works with R 4.0.2 (and, if I recall correctly, 4.0.1). Please upgrade to R 4.0.2 and the pre-made R should work again for you.

useful!

Related questions

No questions were found.
Github User Rank List