简体   繁体   中英

Unable to install package Rcpp successfully in R Studio

I am unable to install the package "rcpp" in R Studio even though it was executed successfully. When I try to load the sasme library, it doesnt show me in the list of installed libraries.

install.packages("Rcpp") Installing package into 'C:/Users/sk/Documents/R/win-library/3.6' (as 'lib' is unspecified) trying URL ' https://cran.rstudio.com/bin/windows/contrib/3.6/Rcpp_1.0.4.6.zip ' Content type 'application/zip' length 3030990 bytes (2.9 MB) downloaded 2.9 MB

package 'Rcpp' successfully unpacked and MD5 sums checked Warning in install.packages: cannot remove prior installation of package 'Rcpp'

library(Rcpp) Error in library(Rcpp): there is no package called 'Rcpp'

I was able to install by downloading the.tar.gz file from the archive link: https://cran.r-project.org/src/contrib/Archive/Rcpp/ and installing this instead of directly from CRAN.

I had to install a few other libraries which were dependent on this library as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM