Can't install Tidyverse and Broom

Hi everyone,

I'm trying to install "Tidyverse" and "Broom" after, but I still get errors. Here is my line in order to install it :

install.packages("tidyverse", lib="C:/Program Files/R/R-4.0.4/library", dependencies = TRUE, repos="http://cran.rstudio.com/")

And here is the error I get :

Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> namespaceExport
Execution stopped
ERROR: lazy loading failed for package 'tidyverse'
* removing 'C:/Program Files/R/R-4.0.4/library/tidyverse'
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

I ran this line as an administrator.

Thank you for your help!

There is not much information in there, can you show the complete output message just to be sure there is nothing useful been left out.

Sure, here it is.

There is a binary version available but the source version is later:
          binary source needs_compilation
tidyverse  1.3.0  1.3.1             FALSE

installing the source package ‘tidyverse’

essai de l'URL 'http://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 'tidyverse' ...
** package 'tidyverse' correctement décompressé et sommes MD5 vérifiées
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods 'as_mapper.character', 'as_mapper.default', 'as_mapper.list', 'as_mapper.numeric', 'modify.character', 'modify.default', 'modify.double', 'modify.integer', 'modify.logical', 'modify.pairlist', 'modify2.character', 'modify2.default', 'modify2.double', 'modify2.integer', 'modify2.logical', 'modify_at.character', 'modify_at.default', 'modify_at.double', 'modify_at.integer', 'modify_at.logical', 'modify_depth.default', 'modify_if.character', 'modify_if.default', 'modify_if.double', 'modify_if.integer', 'modify_if.logical', 'print.purrr_function_compose', 'print.purrr_function_partial', 'print.purrr_rate_backoff', 'print.purrr_rate_delay', 'rate_sleep.purrr_rate_backoff', 'rate_sleep.purrr_rate_delay' were declared in NAMESPACE but not found
Error in namespaceExport(ns, exports) : 
  undefined exports: pluck<-, accumulate, accumulate2, accumulate_right, array_branch, array_tree, as_mapper, as_vector, assign_in, at_depth, attr_getter, auto_browse, chuck, compact, compose, cross, cross2, cross3, cross_d, cross_df, cross_n, detect, detect_index, discard, every, flatten_df, flatten_dfc, flatten_dfr, has_element, head_while, imap, imap_chr, imap_dbl, imap_dfc, imap_dfr, imap_int, imap_lgl, imap_raw, imodify, insistently, invoke_map, invoke_map_chr, invoke_map_dbl, invoke_map_df, invoke_map_dfc, invoke_map_dfr, invoke_map_int, invoke_map_lgl, invoke_map_raw, is_numeric, is_rate, is_scalar_numeric, iwalk, keep, lift, lift_dl, lift_dv, lift_ld, lift_lv, lift_vd, lift_vl, list_merge, list_modify, lmap, lmap_at, lmap_if, map, map2, map2_chr, map2_dbl, map2_df, map2_dfc, map2_dfr, map2_int, map2_lgl, map2_raw, map_at, map_call, map_chr, map_dbl, map_depth, map_df, map_dfc, map_dfr, map_if, map_int, map_lgl, map_raw, modify2, modify_at, modify_depth, modify_if, mo
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> namespaceExport
Exécution arrêtée
ERROR: lazy loading failed for package 'tidyverse'
* removing 'C:/Program Files/R/R-4.0.4/library/tidyverse'
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

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

I think the problem lies here but it is not clear to me. As a walk around you could install the precompiled binary instead of compiling from source.

I tried to find a binary, and install it manually, but couldn't find it. Do you know where I can find it?

When asked if you want to install from source, answer "no".

It is weird, there is nothing asking me if I want to install it from source or no...

Try forcing it and see what happens

install.packages("tidyverse", type="binary")

Even with this command "type = binary" nothing is asked.
The message is different and it seems that tidyverse is installed now :

> install.packages("tidyverse", lib="C:/Program Files/R/R-4.0.4/library", type = "binary")
essai de l'URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyverse_1.3.1.zip'
Content type 'application/zip' length 429963 bytes (419 KB)
downloaded 419 KB

package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\thoma\AppData\Local\Temp\RtmpEJf0YR\downloaded_packages

So now, when I try to run this command I got the following error message :

> library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in namespaceExport(ns, exports):
 undefined exports: pluck<-, accumulate, accumulate2, accumulate_right, array_branch, array_tree, as_mapper, as_vector, assign_in, at_depth, attr_getter, auto_browse, chuck, compact, compose, cross, cross2, cross3, cross_d, cross_df, cross_n, detect, detect_index, discard, every, flatten_df, flatten_dfc, flatten_dfr, has_element, head_while, imap, imap_chr, imap_dbl, imap_dfc, imap_dfr, imap_int, imap_lgl, imap_raw, imodify, insistently, invoke_map, invoke_map_chr, invoke_map_dbl, invoke_map_df, invoke_map_dfc, invoke_map_dfr, invoke_map_int, invoke_map_lgl, invoke_map_raw, is_numeric, is_rate, is_scalar_numeric, iwalk, keep, lift, lift_dl, lift_dv, lift_ld, lift_lv, lift_vd, lift_vl, list_merge, list_modify, lmap, lmap_at, lmap_if, map, map2, map2_chr, map2_dbl, map2_df, map2_dfc, map2_dfr, map2_int, map2_lgl, map2_raw, map_at, map_call, map_chr, map_dbl, map_depth, map_df, map_dfc, map_dfr, map_
In addition: Warning messages:
1: package ‘tidyverse’ was built under R version 4.0.5 
2: S3 methods ‘as_mapper.character’, ‘as_mapper.default’, ‘as_mapper.list’, ‘as_mapper.numeric’, ‘modify.character’, ‘modify.default’, ‘modify.double’, ‘modify.integer’, ‘modify.logical’, ‘modify.pairlist’, ‘modify2.character’, ‘modify2.default’, ‘modify2.double’, ‘modify2.integer’, ‘modify2.logical’, ‘modify_at.character’, ‘modify_at.default’, ‘modify_at.double’, ‘modify_at.integer’, ‘modify_at.logical’, ‘modify_depth.default’, ‘modify_if.character’, ‘modify_if.default’, ‘modify_if.double’, ‘modify_if.integer’, ‘modify_if.logical’, ‘print.purrr_function_compose’, ‘print.purrr_function_partial’, ‘print.purrr_rate_backoff’, ‘print.purrr_rate_delay’, ‘rate_sleep.purrr_rate_backoff’, ‘rate_sleep.purrr_rate_delay’ were declared in NAMESPACE but not found 

Weird issue, I have no clue what is going on. How about you take this chance to update to the latest R 4.0.5 and start again with a clean installation?

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.