-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
messagesrequests for improvements to error, warning, or feedback messagesrequests for improvements to error, warning, or feedback messages
Description
By accident you can sometimes try to circularly define a ggproto class.
Trying to do anything with the class will inevitably result in an error.
In the example below, printing will give the error:
library(ggplot2)
A <- ggproto("A")
A <- ggproto(NULL, A)
A
#> Error in `<current-expression>` : node stack overflow
I think this error could be caught and its message improved. From initial exploration, it seems we can do this in fetch_ggproto()
.
Metadata
Metadata
Assignees
Labels
messagesrequests for improvements to error, warning, or feedback messagesrequests for improvements to error, warning, or feedback messages