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

Error during installation of 1.10.0 #297

Open
e5c opened this issue Dec 6, 2022 · 6 comments
Open

Error during installation of 1.10.0 #297

e5c opened this issue Dec 6, 2022 · 6 comments

Comments

@e5c
Copy link

e5c commented Dec 6, 2022

Hi, I get the below error when installing the latest version of bayesplot:

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

* 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 ‘/local_disk0/.ephemeral_nfs/cluster_libraries/r/bayesplot’

The downloaded source packages are in
	‘/tmp/RtmpC8AdSC/downloaded_packages’
Warning message:
In install.packages(args[1], repos = args[2], lib = args[3]) :
  installation of package ‘bayesplot’ had non-zero exit status

However installation of 1.9.0 completes without error:

require(devtools)
install_version("bayesplot", version = "1.9.0", repos = "http://cran.us.r-project.org")

Thanks!

@bbjohnson6810
Copy link

I just had the same issue (same 'linewidth' error) whether trying a basic installation, from source, or from github. 1.9.0 ended up working for me as well. Hopefully it's an easy fix!

@jgabry
Copy link
Member

jgabry commented Dec 6, 2022 via email

@e5c
Copy link
Author

e5c commented Dec 7, 2022

Hi @jgabry , the bayesplot 1.9.0 installed with ggplot2 v 3.4.0, which I believe is the latest.

> library('bayesplot')
> sessionInfo()

This is bayesplot version 1.9.0
- Online documentation and vignettes at mc-stan.org/bayesplot
- bayesplot theme set to bayesplot::theme_default()
   * Does _not_ affect other ggplot2 plots
   * See ?bayesplot_theme_set for details on theme setting
R version 4.1.3 (2022-03-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8       
 [4] LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
 [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C          
[10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] bayesplot_1.9.0 ggplot2_3.4.0  

loaded via a namespace (and not attached):
 [1] fansi_1.0.3      withr_2.5.0      assertthat_0.2.1 dplyr_1.0.10    
 [5] utf8_1.2.2       SparkR_3.3.0     grid_4.1.3       R6_2.5.1        
 [9] ggridges_0.5.4   DBI_1.1.3        lifecycle_1.0.3  gtable_0.3.1    
[13] magrittr_2.0.3   scales_1.2.1     pillar_1.8.1     rlang_1.0.6     
[17] cli_3.4.1        generics_0.1.3   vctrs_0.5.1      glue_1.6.2      
[21] munsell_0.5.0    compiler_4.1.3   pkgconfig_2.0.3  colorspace_2.0-3
[25] Rserve_1.8-11    tidyselect_1.2.0 tibble_3.1.8 

@jgabry
Copy link
Member

jgabry commented Dec 7, 2022

Thanks for following up @e5c. Yeah that's the latest ggplot2 version. The error message you got suggests there's an issue with linewidth

Error in element_line(linewidth = 0.3) :
unused argument (linewidth = 0.3)

but with ggplot2 3.4.0 you can do element_line(linewidth = 0.3) without an error. So now I'm not sure what's going on unfortunately. Will have to think more about this.

@bbjohnson6810 Do you also have the most recent ggplot2 installed?

@bbjohnson6810
Copy link

@jgabry I didn't when I got the error, but after updating ggplot2, looks like the most recent bayesplot installed just fine!

@i55m
Copy link

i55m commented Feb 1, 2023

Same issue for me, same solution too

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

4 participants