teunbrand / ggh4x

ggplot extension: options for tailored facets, multiple colourscales and miscellaneous
https://teunbrand.github.io/ggh4x/
Other
534 stars 32 forks source link

object 'guide_gengrob' not found whilst loading namespace 'ggh4x' #108

Closed tungttnguyen closed 1 year ago

tungttnguyen commented 1 year ago

Hi Teun,

I tried installing the dev version but had this error. Can you please check? Thanks!

pak::pkg_install("teunbrand/ggh4x")
Error: package or namespace load failed for 'ggh4x':
 object 'guide_gengrob' not found whilst loading namespace 'ggh4x'
Error: loading failed
Execution halted
ERROR: loading failed
tungttnguyen commented 1 year ago

Update: Loading CRAN version resulted in the same error

R> library(ggh4x)                    
Loading required package: ggplot2
Error: package or namespace load failed for ‘ggh4x’:
 object 'guide_gengrob' not found whilst loading namespace 'ggh4x'
R> packageVersion('ggh4x')
[1] ‘0.2.4’
R> sessioninfo::session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.0 (2023-04-21 ucrt)
 os       Windows 10 x64 (build 19044)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  English_United States.utf8
 ctype    English_United States.utf8
 tz       America/Los_Angeles
 date     2023-04-24
 rstudio  2023.03.0+386 Cherry Blossom (desktop)
 pandoc   NA

─ Packages ───────────────────────────────────────────────────────────────────────────────────────
 package     * version    date (UTC) lib source
 cli           3.6.1      2023-03-23 [1] CRAN (R 4.3.0)
 colorspace    2.1-0      2023-01-23 [1] CRAN (R 4.3.0)
 dplyr         1.1.2      2023-04-20 [1] CRAN (R 4.3.0)
 fansi         1.0.4      2023-01-22 [1] CRAN (R 4.3.0)
 fortunes      1.5-4      2016-12-29 [1] CRAN (R 4.3.0)
 generics      0.1.3      2022-07-05 [1] CRAN (R 4.3.0)
 ggplot2     * 3.4.2.9000 2023-04-24 [1] Github (tidyverse/ggplot2@f7246d4)
 glue          1.6.2      2022-02-24 [1] CRAN (R 4.3.0)
 gtable        0.3.3      2023-03-21 [1] CRAN (R 4.3.0)
 lifecycle     1.0.3      2022-10-07 [1] CRAN (R 4.3.0)
 magrittr      2.0.3      2022-03-30 [1] CRAN (R 4.3.0)
 munsell       0.5.0      2018-06-12 [1] CRAN (R 4.3.0)
 pacman        0.5.1      2019-03-11 [1] CRAN (R 4.3.0)
 pillar        1.9.0      2023-03-22 [1] CRAN (R 4.3.0)
 pkgconfig     2.0.3      2019-09-22 [1] CRAN (R 4.3.0)
 R6            2.5.1      2021-08-19 [1] CRAN (R 4.3.0)
 rlang         1.1.0      2023-03-14 [1] CRAN (R 4.3.0)
 rstudioapi    0.14       2022-08-22 [1] CRAN (R 4.3.0)
 scales        1.2.1      2022-08-20 [1] CRAN (R 4.3.0)
 sessioninfo   1.2.2      2021-12-06 [1] CRAN (R 4.3.0)
 tibble        3.2.1      2023-03-20 [1] CRAN (R 4.3.0)
 tidyselect    1.2.0      2022-10-10 [1] CRAN (R 4.3.0)
 utf8          1.2.3      2023-01-31 [1] CRAN (R 4.3.0)
 vctrs         0.6.2      2023-04-19 [1] CRAN (R 4.3.0)
 withr         2.5.0      2022-03-03 [1] CRAN (R 4.3.0)
teunbrand commented 1 year ago

Hi there, thanks for the report. Indeed, ggh4x is currently incompatible with ggplot2's dev version due to the guide rewrite. I still have to decide how to adapt.

teunbrand commented 1 year ago

I'm closing this issue in favour of #112.