Hey, guys
Been trying to install tidyverse package and I keep getting errors
install.packages("tidyverse")
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/Sturmpanzerwagen A7V/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
also installing the dependencies ‘lifecycle’, ‘rlang’, ‘processx’, ‘cli’, ‘dplyr’, ‘tidyselect’, ‘callr’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘modelr’, ‘reprex’
There are binary versions available but the source versions are
later:
binary source needs_compilation
lifecycle 1.0.1 1.0.3 FALSE
rlang 1.0.2 1.0.6 TRUE
processx 3.5.3 3.8.0 TRUE
cli 3.2.0 3.4.1 TRUE
dplyr 1.0.8 1.0.10 TRUE
tidyselect 1.1.2 1.2.0 FALSE
callr 3.7.0 3.7.2 FALSE
broom 0.8.0 1.0.1 FALSE
dbplyr 2.1.1 2.2.1 FALSE
dtplyr 1.2.1 1.2.2 FALSE
modelr 0.1.8 0.1.9 FALSE
reprex 2.0.1 2.0.2 FALSE
tidyverse 1.3.1 1.3.2 FALSE
Binaries will be installed
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/processx_3.5.3.zip'
Content type 'application/zip' length 1251075 bytes (1.2 MB)
downloaded 1.2 MB
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/dplyr_1.0.8.zip'
Content type 'application/zip' length 1382058 bytes (1.3 MB)
downloaded 1.3 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Sturmpanzerwagen A7V\AppData\Local\Temp\RtmpAfi1hR\downloaded_packages
installing the source packages ‘lifecycle’, ‘tidyselect’, ‘callr’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘modelr’, ‘reprex’, ‘tidyverse’
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/tidyselect_1.2.0.tar.gz'
Content type 'application/x-gzip' length 101498 bytes (99 KB)
downloaded 99 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/broom_1.0.1.tar.gz'
Content type 'application/x-gzip' length 642253 bytes (627 KB)
downloaded 627 KB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.2.1.tar.gz'
Content type 'application/x-gzip' length 670569 bytes (654 KB)
downloaded 654 KB
trying URL 'https://cran.rstudio.com/src/contrib/dtplyr_1.2.2.tar.gz'
Content type 'application/x-gzip' length 297692 bytes (290 KB)
downloaded 290 KB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.9.tar.gz'
Content type 'application/x-gzip' length 121454 bytes (118 KB)
downloaded 118 KB
trying URL 'https://cran.rstudio.com/src/contrib/reprex_2.0.2.tar.gz'
Content type 'application/x-gzip' length 1088076 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.2.tar.gz'
Content type 'application/x-gzip' length 702514 bytes (686 KB)
downloaded 686 KB
* 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
Execução interrompida
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/lifecycle'
* restoring previous 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/lifecycle'
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'callr' ...
** package 'callr' 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 'processx' 3.5.3 is being loaded, but >= 3.6.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/callr'
Warning in install.packages :
installation of package ‘callr’ had non-zero exit status
* installing *source* package 'broom' ...
** package 'broom' 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]]) :
there is no package called 'tidyselect'
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execução interrompida
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/broom'
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
* installing *source* package 'tidyselect' ...
** package 'tidyselect' 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.4 is required
Calls: <Anonymous> ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'tidyselect'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/tidyselect'
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
ERROR: dependency 'callr' is not available for package 'reprex'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/reprex'
Warning in install.packages :
installation of package ‘reprex’ had non-zero exit status
ERROR: dependency 'tidyselect' is not available for package 'dbplyr'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/dbplyr'
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency 'tidyselect' is not available for package 'dtplyr'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/dtplyr'
Warning in install.packages :
installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependencies 'broom', 'tidyselect' are not available for package 'modelr'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/modelr'
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
ERROR: dependencies 'broom', 'dbplyr', 'dtplyr', 'modelr', 'reprex' are not available for package 'tidyverse'
* removing 'C:/Users/Sturmpanzerwagen A7V/Documents/R/win-library/4.0/tidyverse'
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Sturmpanzerwagen A7V\AppData\Local\Temp\RtmpAfi1hR\downloaded_packages’
Could this be a Rtools problem? I got this msg when I installed another package ("sfcr"), but it installed anyway.
I read on another topic that it may be the R version, but I just downloaded the lastest version on the website and didnt solve.
The problem could also be that R is having problem installing newer versions of the packages, but I cant find a way to download specific packages (and older versions of it) and install manually. The website for the package just tell me to install.package in R.
edit: I'm also unable to install specific packages in R using the install.package command. The error is the same.
Any help is appreciated.