-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Don't export LayerSf #3158
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
Comments
Probably, we should not expose Line 66 in 033fb52
|
@clauswilke : I think you asked...I've never needed to use |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
When I implemented custom layers for sf objects, I exported the relevant layer object,
LayerSf()
:ggplot2/R/layer-sf.R
Lines 3 to 8 in 033fb52
This is bad, because we currently don't export its parent,
Layer()
, and we don't want to export it at this time.The correct way to make the sf-specific layer available is to add a constructor function,
layer_sf()
, which replaces thelayer()
function for sf layers.The text was updated successfully, but these errors were encountered: