I cannot install "photosynthesis" package - r

For some reason, I dont seem to be able to install the package.
I tried to install it today but I get a couple of errors including the final "Warning in install.packages :
installation of package ‘photosynthesis’ had non-zero exit status"
I have installed other packages and that one is the only one that seems to have a problem.
Some colleagues have been able to install it so I do not know what I am doing wrong
Some help would be really appreciated it
Edit: Full error message
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/rlibs/4.0.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘lifecycle’, ‘rlang’, ‘vctrs’, ‘ggplot2’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.6.0 TRUE
lifecycle 1.0.1 1.0.3 FALSE
rlang 1.0.2 1.0.6 TRUE
vctrs 0.4.1 0.5.2 TRUE
ggplot2 3.3.5 3.4.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.2.0.zip'
Content type 'application/zip' length 1255499 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_1.0.2.zip'
Content type 'application/zip' length 1718546 bytes (1.6 MB)
downloaded 1.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.4.1.zip'
Content type 'application/zip' length 1569486 bytes (1.5 MB)
downloaded 1.5 MB
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\quesadaa\AppData\Local\Temp\RtmpMBWG1b\downloaded_packages
installing the source packages ‘lifecycle’, ‘ggplot2’, ‘photosynthesis’
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
downloaded 104 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.4.0.tar.gz'
Content type 'application/x-gzip' length 3148426 bytes (3.0 MB)
downloaded 3.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/photosynthesis_2.1.1.tar.gz'
Content type 'application/x-gzip' length 2678855 bytes (2.6 MB)
downloaded 2.6 MB
'\\ad.helsinki.fi\home\q\quesadaa\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 1.0.2 is being loaded, but >= 1.0.6 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/rlibs/4.0.5/lifecycle'
* restoring previous 'C:/rlibs/4.0.5/lifecycle'
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
'\\ad.helsinki.fi\home\q\quesadaa\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'vctrs' 0.4.1 is being loaded, but >= 0.5.0 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/rlibs/4.0.5/ggplot2'
* restoring previous 'C:/rlibs/4.0.5/ggplot2'
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
'\\ad.helsinki.fi\home\q\quesadaa\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
* installing *source* package 'photosynthesis' ...
** package 'photosynthesis' successfully unpacked and MD5 sums checked
** using staged installation
** R
Error in parse(outFile) :
C:/Users/quesadaa/AppData/Local/Temp/Rtmp4UkMHR/R.INSTALL31846c817b0d/photosynthesis/R/bake-par.R:22:12: unexpected '>'
21: # Set units ----
22: .x = .x |>
^
ERROR: unable to collate and parse R files for package 'photosynthesis'
* removing 'C:/rlibs/4.0.5/photosynthesis'
Warning in install.packages :
installation of package ‘photosynthesis’ had non-zero exit status

Related

Unable to load an installed package in R

While trying to install and load the package Hmisc in RStudio, I ran into an error. Upon inspection, it turned out to originate from ggplot2. I can replicate the error on my machine as follows:
> install.packages("ggplot2", dependencies=TRUE)
# see bottom of this post for the full log of this command.
> library(ggplot2)
Error in library(ggplot2) : there is no package called 'ggplot2'
I have reinstalled RStudio and its packages, but without success. Also, some other packages (such as AER) do work properly.
Any advice on how to solve this issue would be greatly appreciated.
Full log of install.packages("ggplot2"):
Installing package into <some library>
(as ‘lib’ is unspecified)
also installing the dependencies ‘cli’, ‘rlang’, ‘lifecycle’, ‘scales’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.1 TRUE
rlang 1.0.2 1.0.6 TRUE
lifecycle 1.0.1 1.0.3 FALSE
scales 1.2.0 1.2.1 FALSE
ggplot2 3.3.5 3.3.6 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/cli_3.2.0.zip'
Content type 'application/zip' length 1255499 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/rlang_1.0.2.zip'
Content type 'application/zip' length 1718546 bytes (1.6 MB)
downloaded 1.6 MB
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
<some library>
installing the source packages ‘lifecycle’, ‘scales’, ‘ggplot2’
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/x-gzip' length 106854 bytes (104 KB)
downloaded 104 KB
trying URL 'https://cran.rstudio.com/src/contrib/scales_1.2.1.tar.gz'
Content type 'application/x-gzip' length 270609 bytes (264 KB)
downloaded 264 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.6.tar.gz'
Content type 'application/x-gzip' length 3061989 bytes (2.9 MB)
downloaded 2.9 MB
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 1.0.2 is being loaded, but >= 1.0.6 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing <some library>
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
* removing <some library>
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
* removing <some library>
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
<some library>
After being advised to install rlang, I first ran remove.packages(rlang), and then install.packages("rlang"), type="source"). However, when I then run library(rlang), I get the error Error in library(rlang) : there is no package called ‘rlang’. Here is the output of install.packages("rlang"):
Installing package into < some library >
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rlang_1.0.6.tar.gz'
Content type 'application/x-gzip' length 742508 bytes (725 KB)
downloaded 725 KB
* installing *source* package 'rlang' ...
** package 'rlang' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'rlang'
* removing < some library >
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
The downloaded source packages are in
< some library >

Error installing ggplot2 in RStudio - MacOS

I'd like to express my thanks in advance for your help. I have been attempting to install the package "ggplot2" for two weeks now in RStudio, and cannot figure out my non-zero exit status errors. I have posted the resulting error code at the end of this message. I have successfully installed some packages, but have failed to install ggplot2 and plotly. I have an assignment due using these packages tonight and would greatly appreciate any insight you can give.
> install.packages("ggplot2", dependencies = TRUE)
also installing the dependencies ‘cli’, ‘rlang’, ‘lifecycle’, ‘scales’
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.4.1 TRUE
rlang 1.0.2 1.0.6 TRUE
lifecycle 1.0.1 1.0.3 FALSE
scales 1.1.1 1.2.1 FALSE
ggplot2 3.3.5 3.3.6 FALSE
Do you want to install from sources the packages which need compilation? (Yes/no/cancel) Yes
installing the source packages ‘cli’, ‘rlang’, ‘lifecycle’, ‘scales’, ‘ggplot2’
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/cli_3.4.1.tar.gz'
Content type 'application/octet-stream' length 540044 bytes (527 KB)
==================================================
downloaded 527 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/rlang_1.0.6.tar.gz'
Content type 'application/octet-stream' length 742508 bytes (725 KB)
==================================================
downloaded 725 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/lifecycle_1.0.3.tar.gz'
Content type 'application/octet-stream' length 106854 bytes (104 KB)
==================================================
downloaded 104 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/scales_1.2.1.tar.gz'
Content type 'application/octet-stream' length 270609 bytes (264 KB)
==================================================
downloaded 264 KB
trying URL 'http://archive.linux.duke.edu/cran/src/contrib/ggplot2_3.3.6.tar.gz'
Content type 'application/octet-stream' length 3061989 bytes (2.9 MB)
==================================================
downloaded 2.9 MB
* installing *source* package ‘cli’ ...
** package ‘cli’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘cli’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/cli’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/cli’
Warning in install.packages :
installation of package ‘cli’ had non-zero exit status
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘rlang’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rlang’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rlang’
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
* installing *source* package ‘lifecycle’ ...
** package ‘lifecycle’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘rlang’ 1.0.2 is being loaded, but >= 1.0.6 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘lifecycle’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/lifecycle’
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency ‘lifecycle’ is not available for package ‘scales’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/scales’
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency ‘scales’ is not available for package ‘ggplot2’
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/sr/02bnxzdx0hvcp6c37xfhlf300000gn/T/Rtmpje9xhl/downloaded_packages’
> library(ggplot2)
Error in library(ggplot2) : there is no package called ‘ggplot2’

R Markdown does not work anymore after update

I'm having troubles with R Markdown. I haven't used R for a while and started using it again recently, so I needed to do some updates in R. Now, R Markdown does not work. It says that it requires some updates, but once performing the updates it gives me this error message:
Installing 'rmarkdown' for R Markdown...
[1/4] Installing bslib...
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
also installing the dependency 'htmltools'
There are binary versions available but the source versions are later:
binary source needs_compilation
htmltools 0.5.1.1 0.5.3 TRUE
bslib 0.2.4 0.4.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/htmltools_0.5.1.1.zip'
Content type 'application/zip' length 242935 bytes (237 KB)
==================================================
downloaded 237 KB
package 'htmltools' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages
installing the source package 'bslib'
trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.4.0.tar.gz'
Content type 'application/x-gzip' length 4835866 bytes (4.6 MB)
==================================================
downloaded 4.6 MB
* installing *source* package 'bslib' ...
** package 'bslib' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'htmltools' 0.5.1.1 is being loaded, but >= 0.5.2 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'bslib'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/bslib'
[2/4] Installing tinytex...
The downloaded source packages are in
'C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages'
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
also installing the dependency 'xfun'
There are binary versions available but the source versions are later:
binary source needs_compilation
xfun 0.22 0.32 TRUE
tinytex 0.31 0.41 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xfun_0.22.zip'
Content type 'application/zip' length 323923 bytes (316 KB)
==================================================
downloaded 316 KB
package 'xfun' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages
installing the source package 'tinytex'
trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.41.tar.gz'
Content type 'application/x-gzip' length 32910 bytes (32 KB)
==================================================
downloaded 32 KB
* installing *source* package 'tinytex' ...
** package 'tinytex' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is being loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'tinytex'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
[3/4] Installing xfun...
The downloaded source packages are in
'C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages'
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
xfun 0.22 0.32 TRUE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/xfun_0.22.zip'
Content type 'application/zip' length 323923 bytes (316 KB)
==================================================
downloaded 316 KB
package 'xfun' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages
[4/4] Installing rmarkdown...
Installing package into 'C:/Users/nicol/Documents/R/win-library/3.6'
(as 'lib' is unspecified)
also installing the dependencies 'htmltools', 'bslib', 'tinytex', 'xfun'
trying URL 'https://cran.rstudio.com/src/contrib/htmltools_0.5.3.tar.gz'
Content type 'application/x-gzip' length 128129 bytes (125 KB)
==================================================
downloaded 125 KB
trying URL 'https://cran.rstudio.com/src/contrib/bslib_0.4.0.tar.gz'
Content type 'application/x-gzip' length 4835866 bytes (4.6 MB)
==================================================
downloaded 4.6 MB
trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.41.tar.gz'
Content type 'application/x-gzip' length 32910 bytes (32 KB)
==================================================
downloaded 32 KB
trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.32.tar.gz'
Content type 'application/x-gzip' length 127521 bytes (124 KB)
==================================================
downloaded 124 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.16.tar.gz'
Content type 'application/x-gzip' length 3243854 bytes (3.1 MB)
==================================================
downloaded 3.1 MB
* installing *source* package 'htmltools' ...
** package 'htmltools' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'htmltools'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/htmltools'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/htmltools'
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** using staged installation
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/xfun'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/xfun'
* installing *source* package 'bslib' ...
** package 'bslib' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'htmltools' 0.5.1.1 is being loaded, but >= 0.5.2 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'bslib'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/bslib'
* installing *source* package 'tinytex' ...
** package 'tinytex' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'xfun' 0.22 is being loaded, but >= 0.29 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'tinytex'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
* restoring previous 'C:/Users/nicol/Documents/R/win-library/3.6/tinytex'
ERROR: dependency 'bslib' is not available for package 'rmarkdown'
* removing 'C:/Users/nicol/Documents/R/win-library/3.6/rmarkdown'
The downloaded source packages are in
'C:\Users\nicol\AppData\Local\Temp\Rtmpo7CXdM\downloaded_packages'
<U+2714> Package 'rmarkdown' successfully installed.
Warning messages:
1: In utils::install.packages("bslib", repos = "https://cran.rstudio.com/") :
installation of package 'bslib' had non-zero exit status
2: In utils::install.packages("tinytex", repos = "https://cran.rstudio.com/") :
installation of package 'tinytex' had non-zero exit status
3: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'htmltools' had non-zero exit status
4: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'xfun' had non-zero exit status
5: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'bslib' had non-zero exit status
6: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'tinytex' had non-zero exit status
7: In utils::install.packages("rmarkdown", repos = "https://cran.rstudio.com/", :
installation of package 'rmarkdown' had non-zero exit status
Does anyone know what I should do to make it work again?
Best regards
Nicolas

Cannot load plm package after installing it?

Hello, could someone help me with this? I install the plm package, however, when I try to load it R gives me an error:
library(plm)
Output:
Error in library(plm) : there is no package called ‘plm’"
About the installation of the package that is the output:
install.packages("plm")
Output:
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/be_al/OneDrive - UvA/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
tentando a 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\be_al\AppData\Local\Temp\Rtmp4gBL5q\downloaded_packages
installing the source package ‘plm’
tentando a 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' successfully unpacked and MD5 sums checked
** 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: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'plm'
* removing 'C:/Users/be_al/OneDrive - UvA/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\be_al\AppData\Local\Temp\Rtmp4gBL5q\downloaded_packages’
3. From previous posts here I tried:
install.packages("plm", dependencies = TRUE)
but it still didn't work for me. And I also tried installing and loading multiple times but always get the same error.
Try:
install.packages("plm",type="win.binary")
This must work

Errors lazy loading failed for package 'devtools'

im trying to install DEVTOOLS but i keep getting the error showing . can any one assist please. The 2 errors as showing below
error 1:package usethis was built under R version 4.0.5
Error in loadNamespace
error 2:ERROR: lazy loading failed for package devtools
Here is my code
install.packages("blockmodeling", dependencies = TRUE)
install.packages("devtools", dependencies = TRUE)
library(devtools)
devtools::install_github("aslez/concoR")
install.packages("blockmodeling", dependencies = TRUE)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/eslam/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/blockmodeling_1.0.0.zip'
Content type 'application/zip' length 410411 bytes (400 KB)
downloaded 400 KB
package ‘blockmodeling’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\eslam\AppData\Local\Temp\Rtmp6nB24u\downloaded_packages
> install.packages("devtools", dependencies = TRUE)
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/eslam/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘pkgload’
There are binary versions available but the source versions are later:
binary source needs_compilation
pkgload 1.2.0 1.2.1 TRUE
devtools 2.3.2 2.4.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/pkgload_1.2.0.zip'
Content type 'application/zip' length 151933 bytes (148 KB)
downloaded 148 KB
package ‘pkgload’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\eslam\AppData\Local\Temp\Rtmp6nB24u\downloaded_packages
installing the source package ‘devtools’
trying URL 'https://cran.rstudio.com/src/contrib/devtools_2.4.0.tar.gz'
Content type 'application/x-gzip' length 369987 bytes (361 KB)
downloaded 361 KB
* installing *source* package 'devtools' ...
** package 'devtools' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Warning message:
package 'usethis' was built under R version 4.0.5
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'pkgload' 1.2.0 is being loaded, but >= 1.2.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
> ERROR
: lazy loading failed for package 'devtools'
* removing 'C:/Users/eslam/Documents/R/win-library/4.0/devtools'
Warning in install.packages :
installation of package ‘devtools’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\eslam\AppData\Local\Temp\Rtmp6nB24u\downloaded_packages’
> library(devtools)
Error in library(devtools) : there is no package called ‘devtools’
> devtools::install_github("aslez/concoR")
Error in loadNamespace(name) : there is no package called ‘devtools’
Thanks everyone for the support.
i figured it out . i had to run
install.packages("devtools,type="win.binary")

Resources