Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on Ubuntu #580

Open
athammad opened this issue Nov 28, 2022 · 1 comment
Open

Cannot install on Ubuntu #580

athammad opened this issue Nov 28, 2022 · 1 comment

Comments

@athammad
Copy link

Hi guys,

I have successfully installed rstan, but I cannot manage to install rstanarm and I do not understand why.
I have also tried to install first bayesplot but I always get the same error you can see below.

install.packages("rstanarm")
Installing package into ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘bayesplot’, ‘shinystan’

trying URL 'https://cloud.r-project.org/src/contrib/bayesplot_1.10.0.tar.gz'
Content type 'application/x-gzip' length 4993447 bytes (4.8 MB)
==================================================
downloaded 4.8 MB

trying URL 'https://cloud.r-project.org/src/contrib/shinystan_2.6.0.tar.gz'
Content type 'application/x-gzip' length 2399890 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

trying URL 'https://cloud.r-project.org/src/contrib/rstanarm_2.21.3.tar.gz'
Content type 'application/x-gzip' length 3767563 bytes (3.6 MB)
==================================================
downloaded 3.6 MB

* installing *source* package ‘bayesplot’ ...
** package ‘bayesplot’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error in element_line(linewidth = 0.3) : 
  unused argument (linewidth = 0.3)
Error: unable to load R code in package ‘bayesplot’
Execution halted
ERROR: lazy loading failed for package ‘bayesplot’
* removing ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2/bayesplot’
Warning in install.packages :
  installation of package ‘bayesplot’ had non-zero exit status
ERROR: dependency ‘bayesplot’ is not available for package ‘shinystan’
* removing ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2/shinystan’
Warning in install.packages :
  installation of package ‘shinystan’ had non-zero exit status
ERROR: dependencies ‘bayesplot’, ‘shinystan’ are not available for package ‘rstanarm’
* removing ‘/home/ahmed/R/x86_64-pc-linux-gnu-library/4.2/rstanarm’
Warning in install.packages :
  installation of package ‘rstanarm’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/RtmpntGw1e/downloaded_packages’
@jttoivon
Copy link

Hi,

It complains about the linewidth aesthetic, which was introduced in ggplot2 version 3.4.0. Try to upgrade ggplot2 to at least this version, and after that try installing rstanarm.

bayesplot package seems to use this feature, but incorrectly requires only that ggplot2 version ≥ 3.0.0.

Jarkko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants