Tidyverse installation error ..

install.packages("tidyverse")
Installing package into ‘C:/Users/owais/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
tidyverse 1.2.1 1.3.0 FALSE

installing the source package ‘tidyverse’

trying URL 'http://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 'tidyverse' ...
    ** package 'tidyverse' successfully unpacked and MD5 sums checked
    ** R
    ** inst
    ** preparing package for lazy loading
    Warning: S3 methods '[.haven_labelled', '[.haven_labelled_spss', 'as.data.frame.haven_labelled', 'as_factor.data.frame', 'as_factor.haven_labelled', 'as_factor.labelled', 'format.pillar_shaft_haven_labelled_chr', 'format.pillar_shaft_haven_labelled_num', 'is.na.haven_labelled_spss', 'print.haven_labelled', 'print.haven_labelled_spss', 'type_sum.haven_labelled', 'zap_formats.data.frame', 'zap_formats.default', 'zap_label.data.frame', 'zap_label.default', 'zap_labels.data.frame', 'zap_labels.default', 'zap_labels.haven_labelled', 'zap_labels.haven_labelled_spss', 'zap_missing.data.frame', 'zap_missing.default', 'zap_missing.haven_labelled', 'zap_missing.haven_labelled_spss', 'zap_widths.data.frame', 'zap_widths.default' were declared in NAMESPACE but not found
    Error in library.dynam(lib, package, package.lib) :
    DLL 'haven' not found: maybe not installed for this architecture?
    ERROR: lazy loading failed for package 'tidyverse'
  • removing 'C:/Users/owais/Documents/R/win-library/3.4/tidyverse'
    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\owais\Documents\R\win-library\3.4" C:\Users\owais\AppData\Local\Temp\Rtmp6zMZ5l/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\owais\AppData\Local\Temp\Rtmp6zMZ5l\downloaded_packages’

Can you check if you have heaven package installed ? Or install it otherwise ?

install.packages("tidyverse") should install the dependent :package: but there could be something blocking it.

1 Like

thank you very much solved i installed xml2 and done.

1 Like

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

installed Haven package still not installing.

install.packages("tidyverse")
Installing package into ‘C:/Users/owais/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
tidyverse 1.2.1 1.3.0 FALSE

installing the source package ‘tidyverse’

trying URL 'http://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 '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 'xml2' 1.2.0 is already loaded, but >= 1.2.2 is required
    ERROR: lazy loading failed for package 'tidyverse'
  • removing 'C:/Users/owais/Documents/R/win-library/3.4/tidyverse'
    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\owais\Documents\R\win-library\3.4" C:\Users\owais\AppData\Local\Temp\Rtmp6zMZ5l/downloaded_packages/tidyverse_1.3.0.tar.gz' had status 1
    Warning in install.packages :
    installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\owais\AppData\Local\Temp\Rtmp6zMZ5l\downloaded_packages’

Glad it works!

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: