-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
When I implemented custom layers for sf objects, I exported the relevant layer object, LayerSf():
Lines 3 to 8 in 033fb52
| #' @export | |
| #' @include layer.r | |
| #' @rdname ggsf | |
| #' @usage NULL | |
| #' @format NULL | |
| LayerSf <- ggproto("LayerSf", Layer, |
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 the layer() function for sf layers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels