On one computer running R 2.15.2 I have installed packages from a .zip file (these packages happened to be ggplot2 and data.table, but I don't think the specific package is my issue.) Everything works fine. I took these packages to a computer without an internet connection and installed them. This other computer is running R 3.0.1. The packages seemed in install without a problem (using R's "install package(s) from local zip file" option). When I call the packages with the library(), I get the following error:
Error: package '' was build before 3.0.0: please-re-install it
Can anyone explain potential causes for this error to be thrown? Are there particular directories that the .zip packages must be in for a proper install? If R is installed on a separate partition from where the .zip packages were loaded, could this cause the error? I'm at a loss, any pointers are greatly appreciated. This is a difficult one to reproduce; if you need any other version/system parameters to understand the problem, please don't hesitate to ask.
Here is the work-around that I used: I installed the latest version of R on an internet-capable computer. I then loaded the my required packages (Packages->install packages->select mirror->select package... After R is finished installing, it displays a message of where the temporary .zip package is located. I navigated to this location, grabbed the temp package, and burnt it to a cd. In this way, I could get the newer package build onto a computer without internet access. I would still be interested to know if there is an easy way to rebuild a package downloaded on an early R version to make it compatable with the latest version (without needed an internet connection). Thanks for pointing me in the right direction @Joshua Ulrich
I tried to install swirl on R(v3.1.0) on ubuntu 12.04LTS:
But faced a similar error:
Doing following helped me:
I hope the same may help fix your installation issue.
running "install.packages('codetools')" can fix this issue for R 3.0.2, if you have the same problem like me: " installing to /home/user/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/libs ** R ** inst ** preparing package for lazy loading Error : package ‘codetools’ was built before R 3.0.0: please re-install it Error : unable to load R code in package ‘Rcpp’ ERROR: lazy loading failed for package ‘Rcpp’ "
I am using rkward on precise
I had a similar error using rkward.Specifically this one: 'lib = "/usr/local/lib/R/site-library"' is not writable
I temporarily changed the permissions for this directory so that rkward could run this from its console:
update.packages(checkBuilt = TRUE, ask = FALSE)
all to fix this:
Error: package '' was build before 3.0.0: please-re-install it
so that (sigh...) I could fix what is a wicked stupid 'default' configuration for audio on precise. I couldn't use play() etc. in rkward.
Ps that just needed phonon-backend-gtstreamer
Yes, this IS dependency HELL! Who needs lava-boiling-hot-suffering kind of hell, when you can have....dun dun dun DEPENDENCY HELL!!!
I found this solution while look at this URL: https://github.com/hadley/ggplot2/issues/796
It will update all the packages that need to be reinstalled.
I installed shiny according https://github.com/rstudio/shiny-server/wiki/Ubuntu-step-by-step-install-instructions
and got the same error at the step
I tried the answer by Richard Lee by starting R
and got the error
obviously no write permission, so
Now I tried again
and got a number of errors
Each time I got an error, I re-installed the requested package
and eventually, I was able to install Rccp, httpuv, and even shiny. Now it works!!
Also see Shiny package installation on R version 3.0.2 "Frisbee Sailing"