Cem Girit
2016-Feb-26 23:51 UTC
[R] Error : package 'xxx' was built before R 3.0.0: please re-install it
Hello,
Here are the steps to the error:
1. Uninstall R version 2.x.y.
2. Install the latest version (3.2.3) of R.
3. Copy all my libraries that were not in the new version into the new
R library.
4. Run "> update.packages(checkBuilt=TRUE, ask=FALSE)" under
R-Studio.
Many packages were updated but for some I received:
"Error : package 'xxx' was built before R 3.0.0:
please
re-install it" error.
Here is an example:
* installing *source* package 'agricolae' ...
* package 'agricolae' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
Error : package 'spdep' was built before R 3.0.0: please re-install it
ERROR: lazy loading failed for package 'agricolae'
* removing 'C:/Program Files/R/R-3.2.3/library/agricolae'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL
-l
"C:\Program Files\R\R-3.2.3\library"
C:\Users\user\AppData\Local\Temp\RtmpG8mSYd/downloaded_packages/agricolae_1.
2-3.tar.gz' had status 1
Warning in install.packages :
installation of package 'agricolae' had non-zero exit status
The downloaded source packages are in
'C:\Users\user\AppData\Local\Temp\RtmpG8mSYd\downloaded_packages'
If I try to install "spdep" package first I get the
following error:
> install.packages("spdep")
also installing the dependency 'sp'
Packages which are only available in source form, and may need compilation
of C/C++/Fortran:
'sp' 'spdep'
These will not be installed
How can I fix such errors? I can
Thank you.
Cem
[[alternative HTML version deleted]]
Uwe Ligges
2016-Feb-27 00:10 UTC
[R] Error : package 'xxx' was built before R 3.0.0: please re-install it
Which mirror are you using? spdep is availabe in binary form for Windows and R-3.2.3 and should be installed without the need for compilation. Best, Uwe Ligges On 27.02.2016 00:51, Cem Girit wrote:> Hello, > > > > Here are the steps to the error: > > > > 1. Uninstall R version 2.x.y. > > 2. Install the latest version (3.2.3) of R. > > 3. Copy all my libraries that were not in the new version into the new > R library. > > 4. Run "> update.packages(checkBuilt=TRUE, ask=FALSE)" under > R-Studio. > > > > Many packages were updated but for some I received: > > > > "Error : package 'xxx' was built before R 3.0.0: please > re-install it" error. > > > > Here is an example: > > > > * installing *source* package 'agricolae' ... > > * package 'agricolae' successfully unpacked and MD5 sums checked > > ** R > > ** data > > ** inst > > ** preparing package for lazy loading > > Error : package 'spdep' was built before R 3.0.0: please re-install it > > ERROR: lazy loading failed for package 'agricolae' > > * removing 'C:/Program Files/R/R-3.2.3/library/agricolae' > > Warning in install.packages : > > running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l > "C:\Program Files\R\R-3.2.3\library" > C:\Users\user\AppData\Local\Temp\RtmpG8mSYd/downloaded_packages/agricolae_1. > 2-3.tar.gz' had status 1 > > Warning in install.packages : > > installation of package 'agricolae' had non-zero exit status > > > > The downloaded source packages are in > > > 'C:\Users\user\AppData\Local\Temp\RtmpG8mSYd\downloaded_packages' > > > > If I try to install "spdep" package first I get the > following error: > > > > > >> install.packages("spdep") > also installing the dependency 'sp' > > Packages which are only available in source form, and may need compilation > of C/C++/Fortran: > 'sp' 'spdep' > These will not be installed > > > > How can I fix such errors? I can > > > Thank you. > > Cem > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
David Winsemius
2016-Feb-27 00:18 UTC
[R] Error : package 'xxx' was built before R 3.0.0: please re-install it
> On Feb 26, 2016, at 3:51 PM, Cem Girit <girit at comcast.net> wrote: > > Hello, > > > > Here are the steps to the error: > > > > 1. Uninstall R version 2.x.y. > > 2. Install the latest version (3.2.3) of R. > > 3. Copy all my libraries that were not in the new version into the new > R library. > > 4. Run "> update.packages(checkBuilt=TRUE, ask=FALSE)" under > R-Studio. > > > > Many packages were updated but for some I received: > > > > "Error : package 'xxx' was built before R 3.0.0: please > re-install it" error. > > > > Here is an example: > > > > * installing *source* package 'agricolae' ... > > * package 'agricolae' successfully unpacked and MD5 sums checked > > ** R > > ** data > > ** inst > > ** preparing package for lazy loading > > Error : package 'spdep' was built before R 3.0.0: please re-install it > > ERROR: lazy loading failed for package 'agricolae'You were trying to install pkg:agricolae before one of its dependencies was updated. I think they get updated alphabetically. So you may need to re-run the update.packages command multiple times so that the required updates are available.> > * removing 'C:/Program Files/R/R-3.2.3/library/agricolae' > > Warning in install.packages : > > running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l > "C:\Program Files\R\R-3.2.3\library" > C:\Users\user\AppData\Local\Temp\RtmpG8mSYd/downloaded_packages/agricolae_1. > 2-3.tar.gz' had status 1 > > Warning in install.packages : > > installation of package 'agricolae' had non-zero exit status > > > > The downloaded source packages are in > > > 'C:\Users\user\AppData\Local\Temp\RtmpG8mSYd\downloaded_packages' > > > > If I try to install "spdep" package first I get the > following error: > > > > > >> install.packages("spdep") > also installing the dependency 'sp' > > Packages which are only available in source form, and may need compilation > of C/C++/Fortran: > 'sp' 'spdep'Seems fairly self-explanatory. You need to install the source version of the packages named. See the appropriate section of the "R Installation and Administration Manual".> These will not be installed > > How can I fix such errors?-- David Winsemius Alameda, CA, USA