[R] readxl/lifecycle/rlang

Dennis Weygand dpweyg@nd @end|ng |rom gm@||@com
Wed Dec 1 22:38:37 CET 2021


I have been using read_excel for years... suddenly today I have this
problem:

> T1 <- read_excel(fname,sheet="T1")
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
:
  there is no package called ‘lifecycle’

So I install lifecycle:

install.packages("lifecycle")
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/dennisweygand/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependency ‘rlang’


  There are binary versions available but the source versions are later:
          binary source needs_compilation
rlang      0.4.5 0.4.12              TRUE
lifecycle  0.2.0  1.0.1             FALSE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rlang_0.4.5.zip
'
Content type 'application/zip' length 1115838 bytes (1.1 MB)
downloaded 1.1 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘rlang’

The downloaded binary packages are in
C:\Users\dennisweygand\AppData\Local\Temp\RtmpKSler3\downloaded_packages
installing the source package ‘lifecycle’

trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.1.tar.gz'
Content type 'application/x-gzip' length 99716 bytes (97 KB)
downloaded 97 KB

ERROR: dependency 'rlang' is not available for package 'lifecycle'
* removing 'C:/Users/dennisweygand/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\dennisweygand\AppData\Local\Temp\RtmpKSler3\downloaded_packages’


Did it work?
Try it again:

> T1 <- read_excel(fname,sheet="T1")
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
:
  there is no package called ‘lifecycle’

I am clueless: what am I doing wrong?
Can anyone help?
D.P. Weygand

	[[alternative HTML version deleted]]



More information about the R-help mailing list