[R] Error : package 'xxx' was built before R 3.0.0: please re-install it

Cem Girit
Fri, 26 Feb 2016 23:51:07 -0000

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]]