Can't install tidyverse package in R version 3.5.2 - r

I am trying to install the tidyverse package and not being able to do it.
1-tried via Packages -> Install
2-tried from console-> install.packages("tidyverse")
Gives errors as below and therefore not loading the lirary
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
Console 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/arikl/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘lifecycle’, ‘tidyselect’, ‘vctrs’, ‘gargle’, ‘glue’, ‘rematch2’, ‘scales’, ‘ellipsis’, ‘vroom’, ‘tzdb’, ‘broom’, ‘cli’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘haven’, ‘hms’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘readr’, ‘rlang’, ‘rvest’, ‘tibble’, ‘tidyr’
There are binary versions available but the source versions
are later:
binary source needs_compilation
lifecycle 0.2.0 1.0.1 FALSE
tidyselect 1.0.0 1.1.1 TRUE
vctrs 0.2.4 0.3.8 TRUE
gargle 0.4.0 1.2.0 FALSE
glue 1.4.0 1.4.2 TRUE
rematch2 2.1.0 2.1.2 FALSE
scales 1.1.0 1.1.1 FALSE
ellipsis 0.3.0 0.3.2 TRUE
vroom 1.2.0 1.5.5 TRUE
broom 0.5.6 0.7.9 FALSE
cli 2.0.2 3.0.1 TRUE
dbplyr 1.4.3 2.1.1 FALSE
dplyr 0.8.5 1.0.7 TRUE
dtplyr 1.0.1 1.1.0 FALSE
googledrive 1.0.0 2.0.0 FALSE
googlesheets4 0.1.1 1.0.0 FALSE
ggplot2 3.3.0 3.3.5 FALSE
haven 2.2.0 2.4.3 TRUE
hms 0.5.3 1.1.1 FALSE
jsonlite 1.6.1 1.7.2 TRUE
lubridate 1.7.8 1.7.10 TRUE
magrittr 1.5 2.0.1 TRUE
modelr 0.1.6 0.1.8 FALSE
pillar 1.4.3 1.6.3 FALSE
readr 1.3.1 2.0.2 TRUE
rlang 0.4.5 0.4.11 TRUE
rvest 0.3.5 1.0.1 FALSE
tibble 3.0.1 3.1.4 TRUE
tidyr 1.0.2 1.1.4 TRUE
tidyverse 1.3.0 1.3.1 FALSE
Binaries will be installed
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘tzdb’
These will not be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyselect_1.0.0.zip'
Content type 'application/zip' length 242507 bytes (236 KB)
downloaded 236 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/vctrs_0.2.4.zip'
Content type 'application/zip' length 1018801 bytes (994 KB)
downloaded 994 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/glue_1.4.0.zip'
Content type 'application/zip' length 157284 bytes (153 KB)
downloaded 153 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/vroom_1.2.0.zip'
Content type 'application/zip' length 1665604 bytes (1.6 MB)
downloaded 1.6 MB
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/dplyr_0.8.5.zip'
Content type 'application/zip' length 3256479 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/haven_2.2.0.zip'
Content type 'application/zip' length 1050152 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/jsonlite_1.6.1.zip'
Content type 'application/zip' length 1164207 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/lubridate_1.7.8.zip'
Content type 'application/zip' length 1583751 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/magrittr_1.5.zip'
Content type 'application/zip' length 155738 bytes (152 KB)
downloaded 152 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/readr_1.3.1.zip'
Content type 'application/zip' length 1588558 bytes (1.5 MB)
downloaded 1.5 MB
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/tibble_3.0.1.zip'
Content type 'application/zip' length 407904 bytes (398 KB)
downloaded 398 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyr_1.0.2.zip'
Content type 'application/zip' length 1297802 bytes (1.2 MB)
downloaded 1.2 MB
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vroom’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked
package ‘jsonlite’ successfully unpacked and MD5 sums checked
package ‘lubridate’ successfully unpacked and MD5 sums checked
package ‘magrittr’ successfully unpacked and MD5 sums checked
package ‘readr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\arikl\AppData\Local\Temp\RtmpCoTyE0\downloaded_packages
installing the source packages ‘lifecycle’, ‘gargle’, ‘rematch2’, ‘scales’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘hms’, ‘modelr’, ‘pillar’, ‘rvest’, ‘tidyverse’
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
trying URL 'https://cran.rstudio.com/src/contrib/gargle_1.2.0.tar.gz'
Content type 'application/x-gzip' length 313418 bytes (306 KB)
downloaded 306 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/scales_1.1.1.tar.gz'
Content type 'application/x-gzip' length 515201 bytes (503 KB)
downloaded 503 KB
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.9.tar.gz'
Content type 'application/x-gzip' length 631606 bytes (616 KB)
downloaded 616 KB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.1.1.tar.gz'
Content type 'application/x-gzip' length 581845 bytes (568 KB)
downloaded 568 KB
trying URL 'https://cran.rstudio.com/src/contrib/dtplyr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 111895 bytes (109 KB)
downloaded 109 KB
trying URL 'https://cran.rstudio.com/src/contrib/googledrive_2.0.0.tar.gz'
Content type 'application/x-gzip' length 1593656 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/src/contrib/googlesheets4_1.0.0.tar.gz'
Content type 'application/x-gzip' length 222038 bytes (216 KB)
downloaded 216 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.5.tar.gz'
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/src/contrib/hms_1.1.1.tar.gz'
Content type 'application/x-gzip' length 43117 bytes (42 KB)
downloaded 42 KB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.8.tar.gz'
Content type 'application/x-gzip' length 121333 bytes (118 KB)
downloaded 118 KB
trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.6.3.tar.gz'
Content type 'application/x-gzip' length 1130236 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/rvest_1.0.1.tar.gz'
Content type 'application/x-gzip' length 94307 bytes (92 KB)
downloaded 92 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.1.tar.gz'
Content type 'application/x-gzip' length 702779 bytes (686 KB)
downloaded 686 KB
* 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 >= 0.4.10 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'gargle' ...
** package 'gargle' 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 >= 0.4.9 is required
ERROR: lazy loading failed for package 'gargle'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/gargle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘gargle’ 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/arikl/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 'broom' ...
** package 'broom' 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 'dplyr' 0.8.5 is being loaded, but >= 1.0.0 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/broom'
* restoring previous 'C:/Users/arikl/Documents/R/win-library/3.5/broom'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/scales'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'dbplyr'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/dbplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'dtplyr'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/dtplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'hms'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/hms'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
* installing *source* package 'modelr' ...
** package 'modelr' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** 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 'modelr'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/modelr'
* restoring previous 'C:/Users/arikl/Documents/R/win-library/3.5/modelr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'pillar'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/pillar'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'rvest'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/rvest'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies 'gargle', 'lifecycle', 'pillar' are not available for package 'googledrive'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/googledrive'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googledrive’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/ggplot2'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies 'gargle', 'googledrive', 'rematch2' are not available for package 'googlesheets4'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/googlesheets4'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies 'dbplyr', 'dtplyr', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'pillar', 'rvest' are not available for package 'tidyverse'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/tidyverse'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\arikl\AppData\Local\Temp\RtmpCoTyE0\downloaded_packages’
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

You have a very old version of R. You should update to the current version if you want things to go smoothly.
If you can't do that, here's what you'll have to do:
Install the version of Rtools suitable for R 3.5.x.
Install the packages you want. Some of them won't work, because they will need later versions of R, but won't declare that. So when you find one that fails, try installing the previous version of that package. If that also fails, try an even earlier one. Etc. Your R version was current in 2018, so you may need to go that far back in time to find compatible packages.
Once you finally have everything working, try to update your packages. Maybe some of them could be more recent versions, maybe not. Do them one at a time. Typically tidyverse needs about 90 of them, so this will take a while.
So I recommend that you update your R version.

On my macOS12, it prompts me to install openssl and then install tinyverse again

Related

tidyverse in R: Cannot load tidyverse package [duplicate]

I am trying to install the tidyverse package and not being able to do it.
1-tried via Packages -> Install
2-tried from console-> install.packages("tidyverse")
Gives errors as below and therefore not loading the lirary
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
Console 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/arikl/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘lifecycle’, ‘tidyselect’, ‘vctrs’, ‘gargle’, ‘glue’, ‘rematch2’, ‘scales’, ‘ellipsis’, ‘vroom’, ‘tzdb’, ‘broom’, ‘cli’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘haven’, ‘hms’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘readr’, ‘rlang’, ‘rvest’, ‘tibble’, ‘tidyr’
There are binary versions available but the source versions
are later:
binary source needs_compilation
lifecycle 0.2.0 1.0.1 FALSE
tidyselect 1.0.0 1.1.1 TRUE
vctrs 0.2.4 0.3.8 TRUE
gargle 0.4.0 1.2.0 FALSE
glue 1.4.0 1.4.2 TRUE
rematch2 2.1.0 2.1.2 FALSE
scales 1.1.0 1.1.1 FALSE
ellipsis 0.3.0 0.3.2 TRUE
vroom 1.2.0 1.5.5 TRUE
broom 0.5.6 0.7.9 FALSE
cli 2.0.2 3.0.1 TRUE
dbplyr 1.4.3 2.1.1 FALSE
dplyr 0.8.5 1.0.7 TRUE
dtplyr 1.0.1 1.1.0 FALSE
googledrive 1.0.0 2.0.0 FALSE
googlesheets4 0.1.1 1.0.0 FALSE
ggplot2 3.3.0 3.3.5 FALSE
haven 2.2.0 2.4.3 TRUE
hms 0.5.3 1.1.1 FALSE
jsonlite 1.6.1 1.7.2 TRUE
lubridate 1.7.8 1.7.10 TRUE
magrittr 1.5 2.0.1 TRUE
modelr 0.1.6 0.1.8 FALSE
pillar 1.4.3 1.6.3 FALSE
readr 1.3.1 2.0.2 TRUE
rlang 0.4.5 0.4.11 TRUE
rvest 0.3.5 1.0.1 FALSE
tibble 3.0.1 3.1.4 TRUE
tidyr 1.0.2 1.1.4 TRUE
tidyverse 1.3.0 1.3.1 FALSE
Binaries will be installed
Package which is only available in source form, and may need
compilation of C/C++/Fortran: ‘tzdb’
These will not be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyselect_1.0.0.zip'
Content type 'application/zip' length 242507 bytes (236 KB)
downloaded 236 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/vctrs_0.2.4.zip'
Content type 'application/zip' length 1018801 bytes (994 KB)
downloaded 994 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/glue_1.4.0.zip'
Content type 'application/zip' length 157284 bytes (153 KB)
downloaded 153 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/vroom_1.2.0.zip'
Content type 'application/zip' length 1665604 bytes (1.6 MB)
downloaded 1.6 MB
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/dplyr_0.8.5.zip'
Content type 'application/zip' length 3256479 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/haven_2.2.0.zip'
Content type 'application/zip' length 1050152 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/jsonlite_1.6.1.zip'
Content type 'application/zip' length 1164207 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/lubridate_1.7.8.zip'
Content type 'application/zip' length 1583751 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/magrittr_1.5.zip'
Content type 'application/zip' length 155738 bytes (152 KB)
downloaded 152 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/readr_1.3.1.zip'
Content type 'application/zip' length 1588558 bytes (1.5 MB)
downloaded 1.5 MB
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/tibble_3.0.1.zip'
Content type 'application/zip' length 407904 bytes (398 KB)
downloaded 398 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyr_1.0.2.zip'
Content type 'application/zip' length 1297802 bytes (1.2 MB)
downloaded 1.2 MB
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vroom’ successfully unpacked and MD5 sums checked
package ‘cli’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked
package ‘jsonlite’ successfully unpacked and MD5 sums checked
package ‘lubridate’ successfully unpacked and MD5 sums checked
package ‘magrittr’ successfully unpacked and MD5 sums checked
package ‘readr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\arikl\AppData\Local\Temp\RtmpCoTyE0\downloaded_packages
installing the source packages ‘lifecycle’, ‘gargle’, ‘rematch2’, ‘scales’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘hms’, ‘modelr’, ‘pillar’, ‘rvest’, ‘tidyverse’
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
trying URL 'https://cran.rstudio.com/src/contrib/gargle_1.2.0.tar.gz'
Content type 'application/x-gzip' length 313418 bytes (306 KB)
downloaded 306 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/scales_1.1.1.tar.gz'
Content type 'application/x-gzip' length 515201 bytes (503 KB)
downloaded 503 KB
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.9.tar.gz'
Content type 'application/x-gzip' length 631606 bytes (616 KB)
downloaded 616 KB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.1.1.tar.gz'
Content type 'application/x-gzip' length 581845 bytes (568 KB)
downloaded 568 KB
trying URL 'https://cran.rstudio.com/src/contrib/dtplyr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 111895 bytes (109 KB)
downloaded 109 KB
trying URL 'https://cran.rstudio.com/src/contrib/googledrive_2.0.0.tar.gz'
Content type 'application/x-gzip' length 1593656 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/src/contrib/googlesheets4_1.0.0.tar.gz'
Content type 'application/x-gzip' length 222038 bytes (216 KB)
downloaded 216 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.5.tar.gz'
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/src/contrib/hms_1.1.1.tar.gz'
Content type 'application/x-gzip' length 43117 bytes (42 KB)
downloaded 42 KB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.8.tar.gz'
Content type 'application/x-gzip' length 121333 bytes (118 KB)
downloaded 118 KB
trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.6.3.tar.gz'
Content type 'application/x-gzip' length 1130236 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/rvest_1.0.1.tar.gz'
Content type 'application/x-gzip' length 94307 bytes (92 KB)
downloaded 92 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.1.tar.gz'
Content type 'application/x-gzip' length 702779 bytes (686 KB)
downloaded 686 KB
* 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 >= 0.4.10 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'gargle' ...
** package 'gargle' 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 >= 0.4.9 is required
ERROR: lazy loading failed for package 'gargle'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/gargle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘gargle’ 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/arikl/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 'broom' ...
** package 'broom' 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 'dplyr' 0.8.5 is being loaded, but >= 1.0.0 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/broom'
* restoring previous 'C:/Users/arikl/Documents/R/win-library/3.5/broom'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/scales'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'dbplyr'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/dbplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'dtplyr'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/dtplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'hms'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/hms'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
* installing *source* package 'modelr' ...
** package 'modelr' successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** 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 'modelr'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/modelr'
* restoring previous 'C:/Users/arikl/Documents/R/win-library/3.5/modelr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'pillar'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/pillar'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'rvest'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/rvest'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies 'gargle', 'lifecycle', 'pillar' are not available for package 'googledrive'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/googledrive'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googledrive’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/ggplot2'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies 'gargle', 'googledrive', 'rematch2' are not available for package 'googlesheets4'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/googlesheets4'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependencies 'dbplyr', 'dtplyr', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'pillar', 'rvest' are not available for package 'tidyverse'
* removing 'C:/Users/arikl/Documents/R/win-library/3.5/tidyverse'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\arikl\AppData\Local\Temp\RtmpCoTyE0\downloaded_packages’
> library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
You have a very old version of R. You should update to the current version if you want things to go smoothly.
If you can't do that, here's what you'll have to do:
Install the version of Rtools suitable for R 3.5.x.
Install the packages you want. Some of them won't work, because they will need later versions of R, but won't declare that. So when you find one that fails, try installing the previous version of that package. If that also fails, try an even earlier one. Etc. Your R version was current in 2018, so you may need to go that far back in time to find compatible packages.
Once you finally have everything working, try to update your packages. Maybe some of them could be more recent versions, maybe not. Do them one at a time. Typically tidyverse needs about 90 of them, so this will take a while.
So I recommend that you update your R version.
On my macOS12, it prompts me to install openssl and then install tinyverse again

Error in installing tidyverse in Windows: installation had non-zero exit status

I'm trying to install tidyverse package in R in Windows. However, I get the error message:
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
I couldn't find solutions for this problem on Windows, only for Ubuntu.
The entire installation message is described below:
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/u006743/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘processx’, ‘highr’, ‘xfun’, ‘tinytex’, ‘lifecycle’, ‘tidyselect’, ‘vctrs’, ‘gargle’, ‘rematch2’, ‘scales’, ‘ellipsis’, ‘callr’, ‘knitr’, ‘rmarkdown’, ‘broom’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘forcats’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘haven’, ‘hms’, ‘jsonlite’, ‘lubridate’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘readr’, ‘reprex’, ‘rlang’, ‘rvest’, ‘tibble’, ‘tidyr’
There are binary versions available but the source versions are later:
binary source needs_compilation
processx 3.4.2 3.5.2 TRUE
highr 0.8 0.9 FALSE
xfun 0.13 0.23 FALSE
tinytex 0.22 0.32 FALSE
lifecycle 0.2.0 1.0.0 FALSE
tidyselect 1.0.0 1.1.1 FALSE
vctrs 0.2.4 0.3.8 TRUE
gargle 0.4.0 1.1.0 FALSE
rematch2 2.1.0 2.1.2 FALSE
scales 1.1.0 1.1.1 FALSE
ellipsis 0.3.0 0.3.2 TRUE
callr 3.4.3 3.7.0 FALSE
knitr 1.28 1.33 FALSE
rmarkdown 2.1 2.9 FALSE
broom 0.5.6 0.7.7 FALSE
dbplyr 1.4.3 2.1.1 FALSE
dplyr 0.8.5 1.0.6 TRUE
dtplyr 1.0.1 1.1.0 FALSE
forcats 0.5.0 0.5.1 FALSE
googledrive 1.0.0 1.0.1 FALSE
googlesheets4 0.1.1 0.3.0 FALSE
ggplot2 3.3.0 3.3.3 FALSE
haven 2.2.0 2.4.1 TRUE
hms 0.5.3 1.1.0 FALSE
jsonlite 1.6.1 1.7.2 TRUE
lubridate 1.7.8 1.7.10 TRUE
magrittr 1.5 2.0.1 FALSE
modelr 0.1.6 0.1.8 FALSE
pillar 1.4.3 1.6.1 FALSE
readr 1.3.1 1.4.0 TRUE
reprex 0.3.0 2.0.0 FALSE
rlang 0.4.5 0.4.11 TRUE
rvest 0.3.5 1.0.0 FALSE
tibble 3.0.1 3.1.2 TRUE
tidyr 1.0.2 1.1.3 TRUE
tidyverse 1.3.0 1.3.1 FALSE
Binaries will be installed
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/vctrs_0.2.4.zip'
Content type 'application/zip' length 1018801 bytes (994 KB)
downloaded 994 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/dplyr_0.8.5.zip'
Content type 'application/zip' length 3256479 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/haven_2.2.0.zip'
Content type 'application/zip' length 1050152 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/jsonlite_1.6.1.zip'
Content type 'application/zip' length 1164207 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/lubridate_1.7.8.zip'
Content type 'application/zip' length 1583751 bytes (1.5 MB)
downloaded 1.5 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/readr_1.3.1.zip'
Content type 'application/zip' length 1588558 bytes (1.5 MB)
downloaded 1.5 MB
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/tibble_3.0.1.zip'
Content type 'application/zip' length 407904 bytes (398 KB)
downloaded 398 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyr_1.0.2.zip'
Content type 'application/zip' length 1297802 bytes (1.2 MB)
downloaded 1.2 MB
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked
package ‘jsonlite’ successfully unpacked and MD5 sums checked
package ‘lubridate’ successfully unpacked and MD5 sums checked
package ‘readr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\u006743\AppData\Local\Temp\Rtmp0cmfHs\downloaded_packages
installing the source packages ‘highr’, ‘xfun’, ‘tinytex’, ‘lifecycle’, ‘tidyselect’, ‘gargle’, ‘rematch2’, ‘scales’, ‘callr’, ‘knitr’, ‘rmarkdown’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘forcats’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘hms’, ‘magrittr’, ‘modelr’, ‘pillar’, ‘reprex’, ‘rvest’, ‘tidyverse’
trying URL 'https://cran.rstudio.com/src/contrib/highr_0.9.tar.gz'
Content type 'application/x-gzip' length 15188 bytes (14 KB)
downloaded 14 KB
trying URL 'https://cran.rstudio.com/src/contrib/xfun_0.23.tar.gz'
Content type 'application/x-gzip' length 111696 bytes (109 KB)
downloaded 109 KB
trying URL 'https://cran.rstudio.com/src/contrib/tinytex_0.32.tar.gz'
Content type 'application/x-gzip' length 30014 bytes (29 KB)
downloaded 29 KB
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_1.0.0.tar.gz'
Content type 'application/x-gzip' length 83389 bytes (81 KB)
downloaded 81 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyselect_1.1.1.tar.gz'
Content type 'application/x-gzip' length 92088 bytes (89 KB)
downloaded 89 KB
trying URL 'https://cran.rstudio.com/src/contrib/gargle_1.1.0.tar.gz'
Content type 'application/x-gzip' length 295629 bytes (288 KB)
downloaded 288 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/scales_1.1.1.tar.gz'
Content type 'application/x-gzip' length 515201 bytes (503 KB)
downloaded 503 KB
trying URL 'https://cran.rstudio.com/src/contrib/callr_3.7.0.tar.gz'
Content type 'application/x-gzip' length 74518 bytes (72 KB)
downloaded 72 KB
trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.33.tar.gz'
Content type 'application/x-gzip' length 892378 bytes (871 KB)
downloaded 871 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_2.9.tar.gz'
Content type 'application/x-gzip' length 3246617 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.7.tar.gz'
Content type 'application/x-gzip' length 632928 bytes (618 KB)
downloaded 618 KB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.1.1.tar.gz'
Content type 'application/x-gzip' length 581845 bytes (568 KB)
downloaded 568 KB
trying URL 'https://cran.rstudio.com/src/contrib/dtplyr_1.1.0.tar.gz'
Content type 'application/x-gzip' length 111895 bytes (109 KB)
downloaded 109 KB
trying URL 'https://cran.rstudio.com/src/contrib/forcats_0.5.1.tar.gz'
Content type 'application/x-gzip' length 258301 bytes (252 KB)
downloaded 252 KB
trying URL 'https://cran.rstudio.com/src/contrib/googledrive_1.0.1.tar.gz'
Content type 'application/x-gzip' length 1808539 bytes (1.7 MB)
downloaded 1.7 MB
trying URL 'https://cran.rstudio.com/src/contrib/googlesheets4_0.3.0.tar.gz'
Content type 'application/x-gzip' length 435126 bytes (424 KB)
downloaded 424 KB
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.3.tar.gz'
Content type 'application/x-gzip' length 3058840 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/src/contrib/hms_1.1.0.tar.gz'
Content type 'application/x-gzip' length 43142 bytes (42 KB)
downloaded 42 KB
trying URL 'https://cran.rstudio.com/src/contrib/magrittr_2.0.1.tar.gz'
Content type 'application/x-gzip' length 265580 bytes (259 KB)
downloaded 259 KB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.8.tar.gz'
Content type 'application/x-gzip' length 121333 bytes (118 KB)
downloaded 118 KB
trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.6.1.tar.gz'
Content type 'application/x-gzip' length 1111747 bytes (1.1 MB)
downloaded 1.1 MB
trying URL 'https://cran.rstudio.com/src/contrib/reprex_2.0.0.tar.gz'
Content type 'application/x-gzip' length 1087170 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/src/contrib/rvest_1.0.0.tar.gz'
Content type 'application/x-gzip' length 94134 bytes (91 KB)
downloaded 91 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.1.tar.gz'
Content type 'application/x-gzip' length 702779 bytes (686 KB)
downloaded 686 KB
* installing *source* package 'xfun' ...
** package 'xfun' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'xfun'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/xfun'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘xfun’ 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 >= 0.4.10 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'tidyselect' ...
** package 'tidyselect' 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 >= 0.4.6 is required
ERROR: lazy loading failed for package 'tidyselect'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/tidyselect'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyselect’ had non-zero exit status
* installing *source* package 'gargle' ...
** package 'gargle' 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 >= 0.4.9 is required
ERROR: lazy loading failed for package 'gargle'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/gargle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘gargle’ 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/u006743/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 '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.5.0 is required
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/u006743/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 'broom' ...
** package 'broom' 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 'dplyr' 0.8.5 is being loaded, but >= 1.0.0 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/broom'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘broom’ had non-zero exit status
* installing *source* package 'magrittr' ...
** package 'magrittr' successfully unpacked and MD5 sums checked
** libs
*** arch - i386
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'magrittr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/magrittr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘magrittr’ had non-zero exit status
ERROR: dependency 'xfun' is not available for package 'highr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/highr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘highr’ had non-zero exit status
ERROR: dependency 'xfun' is not available for package 'tinytex'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/tinytex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tinytex’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/scales'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'magrittr', 'tidyselect' are not available for package 'dbplyr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/dbplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'tidyselect' are not available for package 'dtplyr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/dtplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dtplyr’ had non-zero exit status
ERROR: dependency 'magrittr' is not available for package 'forcats'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/forcats'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘forcats’ had non-zero exit status
ERROR: dependencies 'gargle', 'magrittr' are not available for package 'googledrive'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/googledrive'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googledrive’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'hms'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/hms'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
ERROR: dependencies 'broom', 'magrittr', 'tidyselect' are not available for package 'modelr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/modelr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'pillar'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/pillar'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
ERROR: dependencies 'lifecycle', 'magrittr' are not available for package 'rvest'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/rvest'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies 'highr', 'xfun' are not available for package 'knitr'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/knitr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
ERROR: dependencies 'gargle', 'googledrive', 'lifecycle', 'magrittr', 'rematch2' are not available for package 'googlesheets4'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/googlesheets4'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘googlesheets4’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/ggplot2'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
ERROR: dependencies 'knitr', 'tinytex', 'xfun' are not available for package 'rmarkdown'
* removing 'C:/Users/u006743/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: failed to lock directory 'C:/Users/u006743/Documents/R/win-library/3.5' for modifying
Try removing 'C:/Users/u006743/Documents/R/win-library/3.5/00LOCK-reprex'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘reprex’ had non-zero exit status
ERROR: dependencies 'broom', 'dbplyr', 'dtplyr', 'forcats', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'magrittr', 'modelr', 'pillar', 'reprex', 'rvest' are not available for package 'tidyverse'
* removing 'C:/Users/u006743/Documents/R/win-library/3.5/tidyverse'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status

tidyverse installation error: lazy loading failed for package 'dbplyr'

I have tried to install the package tidyverse in RStudio, but have encountered an error. I have copied below the entire results in the Console window. It seems like I need to have dplyr version 1.0.4 installed as a dependency for the package broom. So I tried to install dplyr using install.packages("dplyr") but it ended up installing 0.8.5. Given that I don't have admin access in my laptop, how can I solve this issue? Also, do I really need Rtools? If yes, I will need to convince my office's IT team. Any suggestion will be highly appreciated.
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/
also installing the dependencies ‘rlang’, ‘tidyselect’, ‘vctrs’, ‘dplyr’, ‘broom’, ‘dbplyr’, ‘modelr’
There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.4.5 0.4.10 TRUE
tidyselect 1.0.0 1.1.0 TRUE
vctrs 0.2.4 0.3.6 TRUE
dplyr 0.8.5 1.0.4 TRUE
broom 0.5.6 0.7.4 FALSE
dbplyr 1.4.3 2.1.0 FALSE
modelr 0.1.6 0.1.8 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
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyselect_1.0.0.zip'
Content type 'application/zip' length 242507 bytes (236 KB)
downloaded 236 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/vctrs_0.2.4.zip'
Content type 'application/zip' length 1018801 bytes (994 KB)
downloaded 994 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/dplyr_0.8.5.zip'
Content type 'application/zip' length 3256479 bytes (3.1 MB)
downloaded 3.1 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyverse_1.3.0.zip'
Content type 'application/zip' length 439648 bytes (429 KB)
downloaded 429 KB
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Raihant\AppData\Local\Temp\RtmpWa2w6P\downloaded_packages
installing the source packages ‘broom’, ‘dbplyr’, ‘modelr’
trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.4.tar.gz'
Content type 'application/x-gzip' length 629713 bytes (614 KB)
downloaded 614 KB
trying URL 'https://cran.rstudio.com/src/contrib/dbplyr_2.1.0.tar.gz'
Content type 'application/x-gzip' length 579687 bytes (566 KB)
downloaded 566 KB
trying URL 'https://cran.rstudio.com/src/contrib/modelr_0.1.8.tar.gz'
Content type 'application/x-gzip' length 121333 bytes (118 KB)
downloaded 118 KB
* installing *source* package 'broom' ...
** package 'broom' 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 'dplyr' 0.8.5 is being loaded, but >= 1.0.0 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:/Program Files/R/R-3.5.2/library/broom'
In R CMD INSTALL
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
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'dplyr' 0.8.5 is being loaded, but >= 1.0.3 is required
ERROR: lazy loading failed for package 'dbplyr'
* removing 'C:/Program Files/R/R-3.5.2/library/dbplyr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘dbplyr’ had non-zero exit status
ERROR: dependency 'broom' is not available for package 'modelr'
* removing 'C:/Program Files/R/R-3.5.2/library/modelr'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘modelr’ had non-zero exit status

Non-zero exit status tidyverse install packages Rstudio

I have been roaming the internet trying to find a solution, but haven't found it yet.
My problem is: i can't install tidytext. I also found out I can't re-install tidyverse for some reason.
The error code is:
install.packages("tidytext")
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/maria/OneDrive/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘ISOcodes’ is not available
also installing the dependency ‘stopwords’
There is a binary version available but the source
version is later:
binary source needs_compilation
stopwords 0.9.0 1.0 FALSE
installing the source packages ‘stopwords’, ‘tidytext’
trying URL 'https://cran.rstudio.com/src/contrib/stopwords_1.0.tar.gz'
Content type 'application/x-gzip' length 104532 bytes (102 KB)
downloaded 102 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidytext_0.2.2.tar.gz'
Content type 'application/x-gzip' length 3088493 bytes (2.9 MB)
downloaded 2.9 MB
ERROR: dependency 'ISOcodes' is not available for package 'stopwords'
* removing 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/stopwords'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\maria\OneDrive\Documents\R\win-library\3.4" C:\Users\maria\AppData\Local\Temp\RtmpOUYnrR/downloaded_packages/stopwords_1.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘stopwords’ had non-zero exit status
ERROR: dependency 'stopwords' is not available for package 'tidytext'
* removing 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/tidytext'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\maria\OneDrive\Documents\R\win-library\3.4" C:\Users\maria\AppData\Local\Temp\RtmpOUYnrR/downloaded_packages/tidytext_0.2.2.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tidytext’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\maria\AppData\Local\Temp\RtmpOUYnrR\downloaded_packages’
> install.packages("tidyverse")
Error in install.packages : Updating loaded packages
Restarting R session...
> 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/maria/OneDrive/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ellipsis’, ‘vctrs’, ‘lifecycle’, ‘dplyr’, ‘haven’, ‘hms’, ‘purrr’, ‘rlang’, ‘tibble’, ‘tidyr’, ‘xml2’
There are binary versions available but the source
versions are later:
binary source needs_compilation
ellipsis 0.1.0 0.3.0 TRUE
vctrs 0.1.0 0.2.2 TRUE
dplyr 0.8.0.1 0.8.4 TRUE
haven 2.1.0 2.2.0 TRUE
hms 0.4.2 0.5.3 FALSE
purrr 0.3.2 0.3.3 TRUE
rlang 0.3.4 0.4.4 TRUE
tibble 2.1.1 2.1.3 TRUE
tidyr 0.8.3 1.0.2 TRUE
xml2 1.2.0 1.2.2 TRUE
tidyverse 1.2.1 1.3.0 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip'
Content type 'application/zip' length 3029353 bytes (2.9 MB)
downloaded 2.9 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/haven_2.1.0.zip'
Content type 'application/zip' length 988500 bytes (965 KB)
downloaded 965 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/purrr_0.3.2.zip'
Content type 'application/zip' length 327437 bytes (319 KB)
downloaded 319 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/tibble_2.1.1.zip'
Content type 'application/zip' length 238931 bytes (233 KB)
downloaded 233 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/tidyr_0.8.3.zip'
Content type 'application/zip' length 907112 bytes (885 KB)
downloaded 885 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/xml2_1.2.0.zip'
Content type 'application/zip' length 3543977 bytes (3.4 MB)
downloaded 3.4 MB
package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked
package ‘haven’ successfully unpacked and MD5 sums checked
package ‘purrr’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyr’ successfully unpacked and MD5 sums checked
package ‘xml2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\maria\AppData\Local\Temp\Rtmpi6CSjp\downloaded_packages
installing the source packages ‘lifecycle’, ‘hms’, ‘tidyverse’
trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_0.1.0.tar.gz'
Content type 'application/x-gzip' length 150752 bytes (147 KB)
downloaded 147 KB
trying URL 'https://cran.rstudio.com/src/contrib/hms_0.5.3.tar.gz'
Content type 'application/x-gzip' length 134669 bytes (131 KB)
downloaded 131 KB
trying URL 'https://cran.rstudio.com/src/contrib/tidyverse_1.3.0.tar.gz'
Content type 'application/x-gzip' length 712837 bytes (696 KB)
downloaded 696 KB
* installing *source* package 'lifecycle' ...
** package 'lifecycle' 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 'rlang' 0.3.4 is being loaded, but >= 0.4.0 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/lifecycle'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\maria\OneDrive\Documents\R\win-library\3.4" C:\Users\maria\AppData\Local\Temp\Rtmpi6CSjp/downloaded_packages/lifecycle_0.1.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
* installing *source* package 'hms' ...
** package 'hms' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'vctrs' 0.1.0 is being loaded, but >= 0.2.1 is required
ERROR: lazy loading failed for package 'hms'
* removing 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/hms'
* restoring previous 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/hms'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\maria\OneDrive\Documents\R\win-library\3.4" C:\Users\maria\AppData\Local\Temp\Rtmpi6CSjp/downloaded_packages/hms_0.5.3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘hms’ had non-zero exit status
* installing *source* package 'tidyverse' ...
** package 'tidyverse' 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]]) :
namespace 'haven' 2.1.0 is being loaded, but >= 2.2.0 is required
ERROR: lazy loading failed for package 'tidyverse'
* removing 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/tidyverse'
* restoring previous 'C:/Users/maria/OneDrive/Documents/R/win-library/3.4/tidyverse'
In R CMD INSTALL
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\maria\OneDrive\Documents\R\win-library\3.4" C:\Users\maria\AppData\Local\Temp\Rtmpi6CSjp/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
I thought the issue was dependencies, but it's not in the error message/output.
Because of the Rtools warning, I have downloaded Rtools, which never was required before - but I get this:
> install.packages("Rtools")
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/maria/OneDrive/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘Rtools’ is not available (for R version 3.4.4)
My R / system info: [Default] [64-bit] C:\Program Files\R\R-3.4.4
I work on a Microsoft computer.
Hope someone knows what's what here!
Best,
Maria
#MrFlick posted the answer in the section above:
I had the old version of R. Installed to R 3.6.0 and everything works.
I first only updated Rstudio, not R itself. It wasn't until I updated R that it worked.
Find the link here: https://cran.r-project.org/bin/windows/base/old/3.6.0/

RMD packages can't be downloaded in R Studio

I can't download the RMD packages in R studio. I tried it by running install.packages("rmarkdown"), and I tried it by File > New File > R Markdown > Download packages.
This is the output:
> install.packages("rmarkdown")
Installing package into ‘C:/Users/Luke/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘glue’, ‘stringi’, ‘knitr’, ‘yaml’, ‘stringr’
There are binary versions available but the source versions are later:
binary source needs_compilation
glue 1.0.0 1.3.1 TRUE
stringi 1.1.5 1.4.3 TRUE
knitr 1.15.1 1.23 FALSE
yaml 2.1.14 2.2.0 TRUE
stringr 1.2.0 1.4.0 FALSE
rmarkdown 1.4 1.13 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/glue_1.0.0.zip'
Content type 'application/zip' length 34947 bytes (34 KB)
downloaded 34 KB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/stringi_1.1.5.zip'
Content type 'application/zip' length 14220135 bytes (13.6 MB)
downloaded 13.6 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/yaml_2.1.14.zip'
Content type 'application/zip' length 180051 bytes (175 KB)
downloaded 175 KB
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘stringi’ successfully unpacked and MD5 sums checked
package ‘yaml’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq\downloaded_packages
installing the source packages ‘knitr’, ‘stringr’, ‘rmarkdown’
trying URL 'https://cran.rstudio.com/src/contrib/knitr_1.23.tar.gz'
Content type 'application/x-gzip' length 880134 bytes (859 KB)
downloaded 859 KB
trying URL 'https://cran.rstudio.com/src/contrib/stringr_1.4.0.tar.gz'
Content type 'application/x-gzip' length 135777 bytes (132 KB)
downloaded 132 KB
trying URL 'https://cran.rstudio.com/src/contrib/rmarkdown_1.13.tar.gz'
Content type 'application/x-gzip' length 3155180 bytes (3.0 MB)
downloaded 3.0 MB
* installing *source* package 'stringr' ...
** package 'stringr' 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]]) :
namespace 'stringi' 1.1.5 is being loaded, but >= 1.1.7 is required
ERROR: lazy loading failed for package 'stringr'
* removing 'C:/Users/Luke/Documents/R/win-library/3.2/stringr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\Luke\Documents\R\win-library\3.2" C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq/downloaded_packages/stringr_1.4.0.tar.gz' had status 1
Warning in install.packages :
installation of package ‘stringr’ had non-zero exit status
ERROR: dependency 'stringr' is not available for package 'knitr'
* removing 'C:/Users/Luke/Documents/R/win-library/3.2/knitr'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\Luke\Documents\R\win-library\3.2" C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq/downloaded_packages/knitr_1.23.tar.gz' had status 1
Warning in install.packages :
installation of package ‘knitr’ had non-zero exit status
ERROR: dependencies 'knitr', 'stringr' are not available for package 'rmarkdown'
* removing 'C:/Users/Luke/Documents/R/win-library/3.2/rmarkdown'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Users\Luke\Documents\R\win-library\3.2" C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq/downloaded_packages/rmarkdown_1.13.tar.gz' had status 1
Warning in install.packages :
installation of package ‘rmarkdown’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq\downloaded_packages’
The C:\Users\Luke\AppData\Local\Temp\Rtmpq6rTgq\downloaded_packages folder contains:
Screenshot of named folder
I am very inexperienced with programming in R, so I have no idea what to do with this. I am learning to do it (via the online Udacity course), and for that I need these RMD packages to continue. I hope someone can help me.

Resources