Open marcmenem opened 2 years ago
I figured I should comment over here rather than discussing this issue on the wrong page. I can include a fix for this in the same pull request as the linewidth
parameter changes. It looks like a number of the functions that you'd added using getFromNamespace
are now exported by scales or ggplot2 so there aren't too many that need to be copied over.
At least one of the non-exported functions uses cli so it would make sense to add that to Imports (and start using cli_abort()
instead of the abort(glue(...))
combo in other functions as well).
This is mostly fixed but I'll try to keep an eye on ggplot2 releases to see when datetime_scale()
is officially exported so we can remove the last call to asNamespace()
. Here is the relevant section: https://github.com/marcmenem/ggshadow/blob/master/R/ggplot2-utils.R#L563-L565
Closed by #10
try to avoid
getFromNamespace
as recommended by https://www.tidyverse.org/blog/2022/09/playing-on-the-same-team-as-your-dependecy/