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

Package unable to load (due to the update of ggplot2?) #46

Closed
sammo3182 opened this issue May 11, 2023 · 5 comments
Closed

Package unable to load (due to the update of ggplot2?) #46

sammo3182 opened this issue May 11, 2023 · 5 comments
Labels
ggplot2 issue Issue relating to ggplot2's framework and not ggside.

Comments

@sammo3182
Copy link

I'm using ggplo2 3.4 and when librarying ggside, it gives the following message:

> library(ggside)
Error: package or namespace load failed forggside:
 objectguide_gengrobis not exported by 'namespace:ggplot2'

I observed a similar issue here for another package, just fyi.

@jtlandis
Copy link
Owner

Hello,

I have just tested on my own system after updating ggplot2 3.4.2 and ggside 0.2.2 - and I am able to load ggside as well as run examples.

What version of ggside do you have installed? is it the CRAN version, the main branch of the github, or the dev branch of the github?

@sammo3182
Copy link
Author

Hi @jtlandis , thank you for taking care of this issue. I libraried 0.2.2. It gave me the error message mentioned above. The problem was not fixed by reinstalling the package or installing the dev version from the github repo.

Here's the sessionInfo for your reference:

> sessionInfo()
R Under development (unstable) (2023-04-20 r84291 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: Asia/Shanghai
tzcode source: internal

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

other attached packages:
[1] ggplot2_3.4.2.9000

loaded via a namespace (and not attached):
 [1] utf8_1.2.3       R6_2.5.1         tidyselect_1.2.0
 [4] magrittr_2.0.3   gtable_0.3.3     glue_1.6.2      
 [7] tibble_3.2.1     parallel_4.4.0   pkgconfig_2.0.3 
[10] generics_0.1.3   dplyr_1.1.2      lifecycle_1.0.3 
[13] cli_3.6.1        fansi_1.0.4      scales_1.2.1    
[16] grid_4.4.0       vctrs_0.6.2      withr_2.5.0     
[19] compiler_4.4.0   rstudioapi_0.14  tools_4.4.0     
[22] pillar_1.9.0     munsell_0.5.0    colorspace_2.1-0
[25] rlang_1.1.1     

@jtlandis
Copy link
Owner

The dev version, is not ready for release yet so I would stick with the CRAN version for now.

This issue is quite strange. It seems like guide_gengrob is missing from ggplot2's namespace on your system. I have checked on mine, and I can still access ggplot2::guide_gengrob.

After installing the development version via remotes::install_github("tidyverse/ggplot2") and restarting my R session, ggplot2::guide_gengrob is no longer exported, which seems to be the result.

Try and install ggplot2 from CRAN instead. In the meantime, I will open a ticket and inquire to why they removed a set of functions.

@jtlandis
Copy link
Owner

They have finally made a change to the guide system which will extend ggproto classes. This will unfortunately break ggside with the newer version of ggplot2.

I do not know when I will have time to also port these changes to ggside, so ggplot2 (v3.4.2) will be the last version ggside is compatible with until I have the free time to make an update.

@jtlandis jtlandis added this to the ggside and ggproto Guides milestone Dec 11, 2023
@jtlandis jtlandis added the ggplot2 issue Issue relating to ggplot2's framework and not ggside. label Dec 11, 2023
@jtlandis
Copy link
Owner

@sammo3182 I believe with the new release of ggside this issue should be resolved. Thank you for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggplot2 issue Issue relating to ggplot2's framework and not ggside.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants