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

Unexported (until v1.0.0) rlang functions used #4797

Closed
billybarc opened this issue Apr 8, 2022 · 1 comment · Fixed by #4800
Closed

Unexported (until v1.0.0) rlang functions used #4797

billybarc opened this issue Apr 8, 2022 · 1 comment · Fixed by #4800

Comments

@billybarc
Copy link
Contributor

The dev version of ggplot2 uses on_load()/run_on_load() from rlang, but these functions are not exported for rlang versions < 1.0.0. I think the ggplot2 DESCRIPTION dependency needs to be upgraded to rlang >= 1.0.0.

I noticed this after getting the following error when trying to install the dev version of ggplot2 while only having rlang version 0.4.10:

* installing *source* package 'ggplot2' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in on_load({ : could not find function "on_load"
Error: unable to load R code in package 'ggplot2'
Execution halted
ERROR: lazy loading failed for package 'ggplot2'
Warning in install.packages :
  installation of package 'ggplot2' had non-zero exit status

Not sure what the reprex would be here other than installing specific versions of these packages with devtools::install_version(); can provide if needed.

Crosspost from stackoverflow.

@hadley
Copy link
Member

hadley commented Apr 14, 2022

Do you want to do a PR to fix this?

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

Successfully merging a pull request may close this issue.

2 participants