bayesplot
bayesplot copied to clipboard
Error during installation of 1.10.0
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!
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!
Sorry about this! Definitely my fault. Does it work if you update to the
latest ggplot2 version? I think the issue is that I forgot to add a check
for the user’s ggplot2 version before using the new linewidth argument
they added in the latest release.
On Tue, Dec 6, 2022 at 2:08 PM Benjamin Johnson @.***> wrote:
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!
— Reply to this email directly, view it on GitHub https://github.com/stan-dev/bayesplot/issues/297#issuecomment-1340007079, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3PQQ6ETEE5RM7C42HENRDWL6TLZANCNFSM6AAAAAASVYHNAE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
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
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?
@jgabry I didn't when I got the error, but after updating ggplot2, looks like the most recent bayesplot installed just fine!
Same issue for me, same solution too