Installation of package ‘tidybayes’ had non-zero exit status

Hi Everyone

I'm trying to install the package tidybayes, but it is throwing the error message:

In R CMD INSTALL
Warning in install.packages :
installation of package ‘tidybayes’ had non-zero exit status

When I attempt to install directly from github with:

devtools::install_github("mjskay/tidybayes")

It also fails.
I was wondering if anyone knew how to install this package?
I'm operating on windows, R version 3.5.3 if that helps.

Thanks in advance.

Could you supply all of the output produced by the install command? There is probably information there about the problem.

Sure, here is all the output:

Installing package into ‘C:/Users/h/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependency ‘ggdist’

There is a binary version available but the source version is later:
binary source needs_compilation
tidybayes 2.0.3 2.1.1 FALSE

installing the source packages ‘ggdist’, ‘tidybayes’

trying URL 'https://cran.rstudio.com/src/contrib/ggdist_2.2.0.tar.gz'
Content type 'application/x-gzip' length 1120470 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/src/contrib/tidybayes_2.1.1.tar.gz'
Content type 'application/x-gzip' length 4007501 bytes (3.8 MB)
downloaded 3.8 MB

  • installing source package 'ggdist' ...
    ** package 'ggdist' successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error : object 'across' is not exported by 'namespace:dplyr'
    ERROR: lazy loading failed for package 'ggdist'
  • removing 'C:/Users/harri/Documents/R/win-library/3.5/ggdist'
    In R CMD INSTALL
    Warning in install.packages :
    installation of package ‘ggdist’ had non-zero exit status
    ERROR: dependency 'ggdist' is not available for package 'tidybayes'
  • removing 'C:/Users/harri/Documents/R/win-library/3.5/tidybayes'
    In R CMD INSTALL
    Warning in install.packages :
    installation of package ‘tidybayes’ had non-zero exit status

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

It seems it is having a problem loading related packages also, but I'm not experienced enough to know how to solve it.

The first error I see is Error : object 'across' is not exported by 'namespace:dplyr'. Try updating your dplyr. I believe the across function is rather new.
Updating everything to the latest version might be the best solution if updating just dplyr is not enough.

I updated all R packages and it has worked now.

Thanks for your help.

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