-2

When I try to load readr using the library() function, I get the following error:

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘Rcpp’
In addition: Warning message:
package ‘readr’ was built under R version 3.3.2 
Error: package or namespace load failed for ‘readr’

I am relatively new to R. So I am not sure how to interpret this error message. Can you please show me how I can successfully load readr?

Thanks

adibender
  • 7,288
  • 3
  • 37
  • 41
boul789
  • 17
  • 1
  • 5
  • try installing `Rcpp` first: `install.packages("Rcpp")` – adibender Dec 24 '16 at 19:32
  • see also here: http://stackoverflow.com/questions/35082143/error-package-or-namespace-load-failed-for-car?rq=1 – adibender Dec 24 '16 at 19:42
  • I ran "install.packages("Rcpp"), then re-installed readr, and it still didn't load the package. I kept getting the same error message. – boul789 Dec 24 '16 at 20:08
  • try the answer here: http://stackoverflow.com/questions/16501507/lib-unspecified-error-in-loadnamespace – adibender Dec 24 '16 at 20:15
  • i got this warning: Warning in install.packages : unable to move temporary installation ‘C:\Users\gespe\Documents\R\win-library\3.3\file2e5460d87c3f\Rcpp’ to ‘C:\Users\gespe\Documents\R\win-library\3.3\Rcpp’ – boul789 Dec 24 '16 at 20:27
  • hm, try to remove both folders, than rerun the installation – adibender Dec 24 '16 at 20:30

1 Answers1

-1

This problem is so frecuently. You should install R 3.3.2 (last version)

https://cran.r-project.org/

And restart your computer. It is not a problem of packages.

derive111
  • 143
  • 2
  • 10
  • I just did that. Thanks. Now how do i integrate the new version in RStudio? I have both the old and the new versions on my desktop. – boul789 Dec 24 '16 at 21:08
  • First, you have to restart your Pc. Second, the integration beetween Old and new version of R is not a problem. – derive111 Dec 24 '16 at 21:13
  • I restarted the computer and I was able to install and load readr. Thanks! – boul789 Dec 24 '16 at 21:27