Unable to install any R packages under version 3.5.1 & RStudio 2022.07.1+554

Viewed 25

I use

  1. R version 3.5.1 (2018-07-02)
  2. RStudio Desktop 2022.07.1+554
  3. Windows 11

And I meet problem in install packages.

I showed error when installing packages "devtools". As each of those errors are pretty long, so I use one of them as an example to show what is happening....

However, I actually CANNOT install any packages. Even they are processing installing process, but finally they all failure.

I tried to un-stall R and RStudio and re-install them again. However, they still give me the same error.

I checked possible solutions said that I need to install its dependency packages first. However, as I said before, none of those packages be able to install...

> install.packages("devtools")
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/mreal/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘fastmap’, ‘openssl’, ‘zip’, ‘processx’, ‘htmltools’, ‘sass’, ‘tinytex’, ‘xfun’, ‘diffobj’, ‘rematch2’, ‘gert’, ‘gh’, ‘cachem’, ‘callr’, ‘bslib’, ‘downlit’, ‘rmarkdown’, ‘xml2’, ‘knitr’, ‘ps’, ‘waldo’, ‘usethis’, ‘cli’, ‘ellipsis’, ‘fs’, ‘lifecycle’, ‘memoise’, ‘pkgbuild’, ‘pkgdown’, ‘pkgload’, ‘profvis’, ‘rcmdcheck’, ‘rlang’, ‘roxygen2’, ‘sessioninfo’, ‘testthat’


  There are binary versions available but the source versions are later:
            binary source needs_compilation
fastmap      1.0.1  1.1.0              TRUE
openssl      1.4.1  2.0.3              TRUE
zip          2.0.4  2.2.1              TRUE
processx     3.4.2  3.7.0              TRUE
htmltools    0.4.0  0.5.3              TRUE
sass         0.2.0  0.4.2              TRUE
tinytex       0.22   0.41             FALSE
xfun          0.13   0.33              TRUE
diffobj      0.2.4  0.3.5              TRUE
rematch2     2.1.0  2.1.2             FALSE
gert           0.3  1.9.0              TRUE
gh           1.1.0  1.3.1             FALSE
callr        3.4.3  3.7.2             FALSE
rmarkdown      2.1   2.16             FALSE
xml2         1.3.2  1.3.3              TRUE
knitr         1.28   1.40             FALSE
ps           1.3.2  1.7.1              TRUE
waldo        0.1.0  0.4.0             FALSE
usethis      1.6.0  2.1.6             FALSE
cli          2.0.2  3.4.0              TRUE
ellipsis     0.3.0  0.3.2              TRUE
fs           1.4.1  1.5.2              TRUE
lifecycle    0.2.0  1.0.2             FALSE
memoise      1.1.0  2.0.1             FALSE
pkgbuild     1.0.6  1.3.1             FALSE
pkgdown      1.5.1  2.0.6             FALSE
pkgload      1.0.2  1.3.0              TRUE
profvis      0.3.6  0.3.7              TRUE
rcmdcheck    1.3.3  1.4.0             FALSE
rlang        0.4.5  1.0.5              TRUE
roxygen2     7.1.0  7.2.1              TRUE
sessioninfo  1.1.1  1.2.2             FALSE
testthat     2.3.2  3.1.4              TRUE
devtools     2.3.0  2.4.4             FALSE

  Binaries will be installed
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘cachem’
  These will not be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/fastmap_1.0.1.zip'
Content type 'application/zip' length 413149 bytes (403 KB)
downloaded 403 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/openssl_1.4.1.zip'
Content type 'application/zip' length 3968715 bytes (3.8 MB)
downloaded 3.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/zip_2.0.4.zip'
Content type 'application/zip' length 442853 bytes (432 KB)
downloaded 432 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/processx_3.4.2.zip'
Content type 'application/zip' length 425981 bytes (415 KB)
downloaded 415 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/htmltools_0.4.0.zip'
Content type 'application/zip' length 690367 bytes (674 KB)
downloaded 674 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/sass_0.2.0.zip'
Content type 'application/zip' length 3430000 bytes (3.3 MB)
downloaded 3.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/xfun_0.13.zip'
Content type 'application/zip' length 184719 bytes (180 KB)
downloaded 180 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/diffobj_0.2.4.zip'
Content type 'application/zip' length 993752 bytes (970 KB)
downloaded 970 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/gert_0.3.zip'
Content type 'application/zip' length 3281275 bytes (3.1 MB)
downloaded 3.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/xml2_1.3.2.zip'
Warning in install.packages :
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/xml2_1.3.2.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/xml2_1.3.2.zip'
Warning in install.packages :
  download of package ‘xml2’ failed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ps_1.3.2.zip'
Content type 'application/zip' length 305349 bytes (298 KB)
downloaded 298 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/cli_2.0.2.zip'
Content type 'application/zip' length 397120 bytes (387 KB)
downloaded 387 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ellipsis_0.3.0.zip'
Content type 'application/zip' length 44220 bytes (43 KB)
downloaded 43 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/fs_1.4.1.zip'
Content type 'application/zip' length 767775 bytes (749 KB)
downloaded 749 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/pkgload_1.0.2.zip'
Content type 'application/zip' length 155115 bytes (151 KB)
downloaded 151 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/profvis_0.3.6.zip'
Content type 'application/zip' length 191938 bytes (187 KB)
downloaded 187 KB

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

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/roxygen2_7.1.0.zip'
Content type 'application/zip' length 1174659 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/testthat_2.3.2.zip'
Content type 'application/zip' length 1803539 bytes (1.7 MB)
downloaded 1.7 MB

package ‘fastmap’ successfully unpacked and MD5 sums checked
package ‘openssl’ successfully unpacked and MD5 sums checked
package ‘zip’ successfully unpacked and MD5 sums checked
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘htmltools’ successfully unpacked and MD5 sums checked
package ‘sass’ successfully unpacked and MD5 sums checked
package ‘xfun’ successfully unpacked and MD5 sums checked
package ‘diffobj’ successfully unpacked and MD5 sums checked
package ‘gert’ successfully unpacked and MD5 sums checked
package ‘ps’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘fs’ successfully unpacked and MD5 sums checked
package ‘pkgload’ successfully unpacked and MD5 sums checked
package ‘profvis’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘roxygen2’ successfully unpacked and MD5 sums checked
package ‘testthat’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\mreal\AppData\Local\Temp\RtmpcnawWJ\downloaded_packages
installing the source packages ‘tinytex’, ‘rematch2’, ‘gh’, ‘callr’, ‘bslib’, ‘downlit’, ‘rmarkdown’, ‘knitr’, ‘waldo’, ‘usethis’, ‘lifecycle’, ‘memoise’, ‘pkgbuild’, ‘pkgdown’, ‘rcmdcheck’, ‘sessioninfo’, ‘devtools’

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/rematch2_2.1.2.tar.gz'
Content type 'application/x-gzip' length 13366 bytes (13 KB)
downloaded 13 KB

trying URL 'https://cran.rstudio.com/src/contrib/gh_1.3.1.tar.gz'
Content type 'application/x-gzip' length 38724 bytes (37 KB)
downloaded 37 KB

trying URL 'https://cran.rstudio.com/src/contrib/callr_3.7.2.tar.gz'
Content type 'application/x-gzip' length 94549 bytes (92 KB)
downloaded 92 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/downlit_0.4.2.tar.gz'
Content type 'application/x-gzip' length 37039 bytes (36 KB)
downloaded 36 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

trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.40.tar.gz'
Content type 'application/x-gzip' length 903328 bytes (882 KB)
downloaded 882 KB

trying URL 'https://cran.rstudio.com/src/contrib/waldo_0.4.0.tar.gz'
Content type 'application/x-gzip' length 37556 bytes (36 KB)
downloaded 36 KB

trying URL 'https://cran.rstudio.com/src/contrib/usethis_2.1.6.tar.gz'
Content type 'application/x-gzip' length 342349 bytes (334 KB)
downloaded 334 KB

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

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

trying URL 'https://cran.rstudio.com/src/contrib/pkgbuild_1.3.1.tar.gz'
Content type 'application/x-gzip' length 31937 bytes (31 KB)
downloaded 31 KB

trying URL 'https://cran.rstudio.com/src/contrib/pkgdown_2.0.6.tar.gz'
Content type 'application/x-gzip' length 871371 bytes (850 KB)
downloaded 850 KB

trying URL 'https://cran.rstudio.com/src/contrib/rcmdcheck_1.4.0.tar.gz'
Content type 'application/x-gzip' length 73522 bytes (71 KB)
downloaded 71 KB

trying URL 'https://cran.rstudio.com/src/contrib/sessioninfo_1.2.2.tar.gz'
Content type 'application/x-gzip' length 170924 bytes (166 KB)
downloaded 166 KB

trying URL 'https://cran.rstudio.com/src/contrib/devtools_2.4.4.tar.gz'
Content type 'application/x-gzip' length 374492 bytes (365 KB)
downloaded 365 KB

* installing *source* package 'tinytex' ...
** package 'tinytex' successfully unpacked and MD5 sums checked
** 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.13 is being loaded, but >= 0.29 is required
ERROR: lazy loading failed for package 'tinytex'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/tinytex'
* restoring previous 'C:/Users/mreal/Documents/R/win-library/3.5/tinytex'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘tinytex’ had non-zero exit status
* installing *source* package 'rematch2' ...
** package 'rematch2' successfully unpacked and MD5 sums checked
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called 'lifecycle'
ERROR: lazy loading failed for package 'rematch2'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/rematch2'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘rematch2’ had non-zero exit status
* installing *source* package 'gh' ...
** package 'gh' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'cli' 2.0.2 is being loaded, but >= 3.0.1 is required
ERROR: lazy loading failed for package 'gh'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/gh'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘gh’ had non-zero exit status
* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'processx' 3.4.2 is being loaded, but >= 3.6.1 is required
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/callr'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘callr’ had non-zero exit status
* installing *source* package 'knitr' ...
** package 'knitr' successfully unpacked and MD5 sums checked
** R
** demo
** 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.13 is being loaded, but >= 0.29 is required
ERROR: lazy loading failed for package 'knitr'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/knitr'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘knitr’ had non-zero exit status
* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'rlang' 0.4.5 is being loaded, but >= 1.0.5 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'cachem' is not available for package 'memoise'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/memoise'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘memoise’ had non-zero exit status
* installing *source* package 'sessioninfo' ...
** package 'sessioninfo' successfully unpacked and MD5 sums checked
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'cli' 2.0.2 is being loaded, but >= 3.1.0 is required
ERROR: lazy loading failed for package 'sessioninfo'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/sessioninfo'
* restoring previous 'C:/Users/mreal/Documents/R/win-library/3.5/sessioninfo'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘sessioninfo’ had non-zero exit status
ERROR: dependencies 'cachem', 'memoise' are not available for package 'bslib'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/bslib'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘bslib’ had non-zero exit status
ERROR: dependency 'memoise' is not available for package 'downlit'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/downlit'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘downlit’ had non-zero exit status
ERROR: dependency 'rematch2' is not available for package 'waldo'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/waldo'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘waldo’ had non-zero exit status
ERROR: dependencies 'gh', 'lifecycle' are not available for package 'usethis'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/usethis'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘usethis’ had non-zero exit status
ERROR: dependency 'callr' is not available for package 'pkgbuild'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/pkgbuild'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘pkgbuild’ had non-zero exit status
ERROR: dependencies 'bslib', 'knitr' are not available for package 'rmarkdown'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/rmarkdown'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘rmarkdown’ had non-zero exit status
ERROR: dependencies 'callr', 'pkgbuild' are not available for package 'rcmdcheck'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/rcmdcheck'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘rcmdcheck’ had non-zero exit status
ERROR: dependencies 'bslib', 'callr', 'downlit', 'memoise', 'rmarkdown' are not available for package 'pkgdown'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/pkgdown'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘pkgdown’ had non-zero exit status
ERROR: dependencies 'usethis', 'lifecycle', 'memoise', 'pkgbuild', 'pkgdown', 'rcmdcheck' are not available for package 'devtools'
* removing 'C:/Users/mreal/Documents/R/win-library/3.5/devtools'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘devtools’ had non-zero exit status
0 Answers
Related