When I try to install tidyverse, it show error. So I need some help for this installation. There also show many link that I delate.

install.packages("tidyverse")
Installing package into ‘C:/Users/dell/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘processx’, ‘xfun’, ‘tinytex’, ‘lifecycle’, ‘tidyselect’, ‘vctrs’, ‘data.table’, ‘gargle’, ‘glue’, ‘rematch2’, ‘scales’, ‘ellipsis’, ‘vroom’, ‘tzdb’, ‘callr’, ‘knitr’, ‘rmarkdown’, ‘broom’, ‘cli’, ‘dbplyr’, ‘dplyr’, ‘dtplyr’, ‘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
xfun 0.13 0.29 TRUE
tinytex 0.22 0.35 FALSE
lifecycle 0.2.0 1.0.1 FALSE
tidyselect 1.0.0 1.1.1 TRUE
vctrs 0.2.4 0.3.8 TRUE
data.table 1.12.8 1.14.2 TRUE
gargle 0.4.0 1.2.0 FALSE
glue 1.4.0 1.5.1 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.7 TRUE
callr 3.4.3 3.7.0 FALSE
knitr 1.28 1.36 FALSE
rmarkdown 2.1 2.11 FALSE
broom 0.5.6 0.7.10 FALSE
cli 2.0.2 3.1.0 TRUE
dbplyr 1.4.3 2.1.1 FALSE
dplyr 0.8.5 1.0.7 TRUE
dtplyr 1.0.1 1.2.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.8.0 TRUE
magrittr 1.5 2.0.1 TRUE
modelr 0.1.6 0.1.8 FALSE
pillar 1.4.3 1.6.4 FALSE
readr 1.3.1 2.1.1 TRUE
reprex 0.3.0 2.0.1 FALSE
rlang 0.4.5 0.4.12 TRUE
rvest 0.3.5 1.0.2 FALSE
tibble 3.0.1 3.1.6 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/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/xfun_0.13.zip'
Content type 'application/zip' length 184719 bytes (180 KB)
downloaded 180 KB

package ‘processx’ successfully unpacked and MD5 sums checked
package ‘xfun’ successfully unpacked and MD5 sums checked
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘data.table’ 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\dell\AppData\Local\Temp\RtmpkBVub7\downloaded_packages
installing the source packages ‘tinytex’, ‘lifecycle’, ‘gargle’, ‘rematch2’, ‘scales’, ‘callr’, ‘knitr’, ‘rmarkdown’, ‘broom’, ‘dbplyr’, ‘dtplyr’, ‘googledrive’, ‘googlesheets4’, ‘ggplot2’, ‘hms’, ‘modelr’, ‘pillar’, ‘reprex’, ‘rvest’, ‘tidyverse’

trying URL

  • 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.23 is required
    ERROR: lazy loading failed for package 'tinytex'
  • removing 'C:/Users/dell/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 '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/dell/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/dell/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/dell/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/dell/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.21 is required
    ERROR: lazy loading failed for package 'knitr'
  • removing 'C:/Users/dell/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: dependency 'lifecycle' is not available for package 'scales'
  • removing 'C:/Users/dell/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 'knitr', 'tinytex' are not available for package 'rmarkdown'
  • removing 'C:/Users/dell/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: dependency 'lifecycle' is not available for package 'dbplyr'
  • removing 'C:/Users/dell/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/dell/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/dell/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: dependency 'lifecycle' is not available for package 'pillar'
  • removing 'C:/Users/dell/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/dell/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/dell/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/dell/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 'callr', 'knitr', 'rmarkdown' are not available for package 'reprex'
  • removing 'C:/Users/dell/Documents/R/win-library/3.5/reprex'
    In R CMD INSTALL
    Warning in install.packages :
    installation of package ‘reprex’ had non-zero exit status
    ERROR: dependency 'ggplot2' is not available for package 'broom'
  • removing 'C:/Users/dell/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: dependencies 'gargle', 'googledrive', 'rematch2' are not available for package 'googlesheets4'
  • removing 'C:/Users/dell/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 'broom' is not available for package 'modelr'
  • removing 'C:/Users/dell/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: dependencies 'broom', 'dbplyr', 'dtplyr', 'googledrive', 'googlesheets4', 'ggplot2', 'hms', 'modelr', 'pillar', 'reprex', 'rvest' are not available for package 'tidyverse'
  • removing 'C:/Users/dell/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\dell\AppData\Local\Temp\RtmpkBVub7\downloaded_packages’

library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’

1 Like

I suspect this is due to the very old version of R (3.5, from 2018/2019). Is there a reason you can't update to a recent version?

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.