Hello!
I am trying to install plm package for a while, and always get error message. I have installed R tools 4.0 and package collapse (as required in the error message), but I still get the following error message. It says it needs collapes version 1.6.0. I have tried to update it but it does not work.
THANK YOU for your help, I am a bit desperate!
install.packages("plm")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
link
Installing package into ‘C:/Users/celine.renucci/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependency ‘collapse’
There are binary versions available but the
source versions are later:
binary source needs_compilation
collapse 1.5.3 1.7.6 TRUE
plm 2.4-1 2.6-1 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/collapse_1.5.3.zip'
Content type 'application/zip' length 3842937 bytes (3.7 MB)
downloaded 3.7 MB
package ‘collapse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\celine.renucci\AppData\Local\Temp\RtmpeQYMwZ\downloaded_packages
installing the source package ‘plm’
trying URL 'https://cran.rstudio.com/src/contrib/plm_2.6-1.tar.gz'
Content type 'application/x-gzip' length 1652371 bytes (1.6 MB)
downloaded 1.6 MB
- installing source package 'plm' ...
** package 'plm' correctement décompressé et sommes MD5 vérifiées
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'collapse' 1.5.3 is being loaded, but >= 1.6.0 is required
Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace
Exécution arrêtée
ERROR: lazy loading failed for package 'plm' - removing 'C:/Users/celine.renucci/Documents/R/win-library/3.6/plm'
Warning in install.packages :
installation of package ‘plm’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\celine.renucci\AppData\Local\Temp\RtmpeQYMwZ\downloaded_packages’