Newly installed R and R studio on windows 10 computer and now it won't install the tidyverse package.
I have tried restarting, re-installing and the advice seen other places of using dependencies=true or installing broom before installing tidyverse and none of it worked.
Had to shorten the output because of too many links
Help would be greatly appreciated
install.packages("tidyverse")
also installing the dependencies ‘Rcpp’, ‘dplyr’, ‘purrr’, ‘rlang’, ‘broom’, ‘dbplyr’, ‘ggplot2’, ‘modelr’
There are binary versions available but the source versions are later:
binary source needs_compilation
Rcpp 0.12.16 1.0.0 TRUE
dplyr 0.7.4 0.7.8 TRUE
purrr 0.2.4 0.3.0 TRUE
rlang 0.2.0 0.3.1 TRUE
broom 0.4.4 0.5.1 FALSE
dbplyr 1.2.1 1.3.0 FALSE
ggplot2 2.2.1 3.1.0 FALSE
modelr 0.1.1 0.1.2 FALSE
package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\rhas0020\AppData\Local\Temp\RtmpWkjzuk\downloaded_packages
installing the source packages ‘broom’, ‘dbplyr’, ‘ggplot2’, ‘modelr’
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.5.1.tar.gz'
Content type 'application/x-gzip' length 1230196 bytes (1.2 MB)
downloaded 1.2 MB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_1.3.0.tar.gz'
Content type 'application/x-gzip' length 269092 bytes (262 KB)
downloaded 262 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.1.0.tar.gz'
Content type 'application/x-gzip' length 2863109 bytes (2.7 MB)
downloaded 2.7 MB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.2.tar.gz'
Content type 'application/x-gzip' length 118432 bytes (115 KB)
downloaded 115 KB
* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'pillar'
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Program Files/R/R-3.3.2/library/broom'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.2\library" C:\Users\rhas0020\AppData\Local\Temp\RtmpWkjzuk/downloaded_packages/broom_0.5.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
* installing *source* package 'dbplyr' ...
** package 'dbplyr' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'dplyr' 0.7.4 is being loaded, but >= 0.7.5 is required
ERROR: lazy loading failed for package 'dbplyr'
* removing 'C:/Program Files/R/R-3.3.2/library/dbplyr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.2\library" C:\Users\rhas0020\AppData\Local\Temp\RtmpWkjzuk/downloaded_packages/dbplyr_1.3.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
* installing *source* package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'rlang' 0.2.0 is being loaded, but >= 0.2.1 is required
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Program Files/R/R-3.3.2/library/ggplot2'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.2\library" C:\Users\rhas0020\AppData\Local\Temp\RtmpWkjzuk/downloaded_packages/ggplot2_3.1.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependency 'broom' is not available for package 'modelr'
* removing 'C:/Program Files/R/R-3.3.2/library/modelr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Program Files\R\R-3.3.2\library" C:\Users\rhas0020\AppData\Local\Temp\RtmpWkjzuk/downloaded_packages/modelr_0.1.2.tar.gz' had status 1
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\rhas0020\AppData\Local\Temp\RtmpWkjzuk\downloaded_packages’
After trying several different things including downloading and unpacking "pillar" and "broom" and others wihtout success I finally "solved" the issue by uninstalling and reinstalling RStudio again - now it works..
Related
[Asking for a colleague because his post is considered as a spam by the website bot.]
I am trying to install the package stringr on R.
I ran install.packages("stringr") in RStudio and it raised an error. Then, I try installing it from the terminal and it raised a similar error, see below. Any package I try to install raises the same issue.
I have Windows 10 but I do not have admin rights. I have R version 4.0.5. I installed R and RStudio via Anaconda. By the way, it seems that there is an issue with Rtools. The content of .Renviron is PATH="${RTOOLS42_HOME}\usr\bin;${PATH}" (as it should be I guess) but Sys.which("make") returns "" in Rstudio. One last thing, my R home environment is on my OneDrive folder, maybe this causes the issue?
Any idea?
C:\Users\TDOUENN>Rscript -e "install.packages('stringr', repos='https://cran.rstudio.com/')"
Installing package into 'C:/Users/TDOUENN/OneDrive - UvA/Documents/My_RLibs'
(as 'lib' is unspecified)
also installing the dependencies 'cli', 'rlang', 'lifecycle'
There are binary versions available but the source versions are later:
binary source needs_compilation
cli 3.2.0 3.6.0 TRUE
rlang 1.0.2 1.0.6 TRUE
lifecycle 1.0.1 1.0.3 FALSE
stringr 1.4.0 1.5.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
package 'cli' successfully unpacked and MD5 sums checked
package 'rlang' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\TDOUENN\AppData\Local\Temp\RtmpkPFcWJ\downloaded_packages
installing the source packages 'lifecycle', 'stringr'
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/stringr_1.5.0.tar.gz'
Content type 'application/x-gzip' length 175699 bytes (171 KB)
==================================================
downloaded 171 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
Execution halted
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/TDOUENN/OneDrive - UvA/Documents/My_RLibs/lifecycle'
* installing *source* package 'stringr' ...
** package 'stringr' 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(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'lifecycle' 1.0.0 is being loaded, but >= 1.0.3 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'stringr'
* removing 'C:/Users/TDOUENN/OneDrive - UvA/Documents/My_RLibs/stringr'
The downloaded source packages are in
'C:\Users\TDOUENN\AppData\Local\Temp\RtmpkPFcWJ\downloaded_packages'
Warning messages:
1: In install.packages("stringr", repos = "https://cran.rstudio.com/") :
installation of package 'lifecycle' had non-zero exit status
2: In install.packages("stringr", repos = "https://cran.rstudio.com/") :
installation of package 'stringr' had non-zero exit status
C:\Users\TDOUENN>Rscript -e "install.packages('stringr', repos='https://cran.rstudio.com/')"
Based on these lines from the error message:
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
And this error:
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'lifecycle' 1.0.0 is being loaded, but >= 1.0.3 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
It looks like your colleague needs to update their lifecycle and rlang packages in order to install stringr.
I'm trying to install "tidyverse" package in R using install.packages("tidyverse"), but it returns the following error:
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/franc/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
tidyverse 1.3.1 1.3.2 FALSE
installing the source package ‘tidyverse’
tentando a 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 'tidyverse' ...
** package 'tidyverse' 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 'tidyselect' 1.1.0 is being loaded, but >= 1.1.1 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execução interrompida
ERROR: lazy loading failed for package 'tidyverse'
* removing 'C:/Users/franc/OneDrive/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\franc\AppData\Local\Temp\RtmpiqAHM6\downloaded_packages’
For some reason the installation doesn't work. I've also tried using install.packages('tidyverse', type = 'binary'), but it installs an older version that is incompatible with some packages I have to use.
I've always used ggplot2... now R didn't found anymore ggplot2.. so I tried to reinstall the package.. withour success... why??? What should I do?
Also I'm not able to install other packages like lattice extra..
Thank you!
install.packages("ggplot2")
Installing package into ‘C:/Users/vale/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is later:
binary source needs_compilation
ggplot2 3.1.1 3.2.1 FALSE
installing the source package ‘ggplot2’
provo con l'URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.2.1.tar.gz'
Content type 'application/x-gzip' length 3204655 bytes (3.1 MB)
downloaded 3.1 MB
* installing *source* package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'colorspace'
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Users/vale/Documents/R/win-library/3.4/ggplot2'
* restoring previous 'C:/Users/vale/Documents/R/win-library/3.4/ggplot2'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\vale\Documents\R\win-library\3.4" C:\Users\vale\AppData\Local\Temp\RtmpgHJKyj/downloaded_packages/ggplot2_3.2.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\vale\AppData\Local\Temp\RtmpgHJKyj\downloaded_packages’
> library(ggplot2)
Errore: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘colorspace’
> install.packages("latticeExtra")
Installing package into ‘C:/Users/vale/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘latticeExtra’ is not available (for R version 3.4.3)
> library(latticeExtra)
Carico il pacchetto richiesto: RColorBrewer
Install the missing colorspace package by executing the following line in R:
install.packages("colorspace")
I just installed the googlesheets package and later i called the library("googlesheets), but it could not executed and gave the error like :
library(googlesheets)
Error in library(googlesheets) :
there is no package called ‘googlesheets’.
Can any one help here
install.packages("googlesheets")
Installing package into ‘C:/Users/eduru.suresh/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
There is a binary version available but the source version is
later:
binary source needs_compilation
googlesheets 0.2.2 0.3.0 FALSE
installing the source package ‘googlesheets’
trying URL 'https://cran.rstudio.com/src/contrib/googlesheets_0.3.0.tar.gz'
Content type 'application/x-gzip' length 2187937 bytes (2.1 MB)
downloaded 2.1 MB
* installing *source* package 'googlesheets' ...
** package 'googlesheets' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'pillar'
ERROR: lazy loading failed for package 'googlesheets'
* removing 'C:/Users/eduru.suresh/Documents/R/win-library/3.3/googlesheets'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\eduru.suresh\Documents\R\win-library\3.3" C:\Users\EDURU~1.SUR\AppData\Local\Temp\RtmpEB1KKI/downloaded_packages/googlesheets_0.3.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘googlesheets’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\eduru.suresh\AppData\Local\Temp\RtmpEB1KKI\downloaded_packages’
> library(googlesheets)
Error in library(googlesheets) :
there is no package called ‘googlesheets’
I had no problem installing and running ggplot2 in the past, but all of a sudden R studio can't find the ggplot2 package anymore. I tried reinstalling the package but although the console ran the code and "downloaded" the package, library(ggplot2) gives me an error:
Error in library(ggplot2) : there is no package called ‘ggplot2’
I already tried:
install.packages("ggplot2",
repos = c("http://rstudio.org/_packages",
"http://cran.rstudio.com"))
I also tried:
install.packages("ggplot2", dependencies = TRUE)
I also uninstalled and reinstalled Rstudio, ran it as admin but nothing works
this is what the console show when running the command
install.packages("ggplot2")
The console output is as follows:
Installing package into ‘C:/Users/Keith/Documents/R/win-library/3.3’
(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.2.0 0.3.1 TRUE
ggplot2 2.2.1 3.1.0 FALSE
Binaries will be installed
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Keith\AppData\Local\Temp\RtmpmKus85\downloaded_packages
installing the source package ‘ggplot2’
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.1.0.tar.gz'
Content type 'application/x-gzip' length 2863109 bytes (2.7 MB)
downloaded 2.7 MB
* installing *source* package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck
= vI[[j]]) :
namespace 'rlang' 0.2.0 is being loaded, but >= 0.2.1 is required
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Users/Keith/Documents/R/win-library/3.3/ggplot2'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.1/bin/x64/R" CMD INSTALL -l
"C:\Users\Keith\Documents\R\win-library\3.3"
C:\User\Keith\AppData\Local\Temp\RtmpmKus85/downlaoaded_packages/ggplot2_3.1.0.tar.gz' had status 1
Warning in installed.packages:
installation of package 'ggplot2' had non-zero exit status