Strip .data from default labels - #3746
Conversation
thomasp85
left a comment
There was a problem hiding this comment.
Shouldn't strip_dots() get the plotenv passed into it with this new setup?
|
I don't think the |
thomasp85
left a comment
There was a problem hiding this comment.
If you feel certain about this then fine... but leave a comment about it because we usually use plotenv instead of globalenv
|
If you're concerned about it, I can just leave it without a default — if it fails (which based on my understanding of the code, shouldn't happen), it'll be caught by the |
|
I have no problem with it, but it is just slightly unclear that evaluation happens in the correct environment without a comment. So for future generations of me, I'd like a small comment |
|
If you remove the default, the argument is basically unused all the way through the recursion. Why have the argument at all then? I feel I'm missing something about this code... |
|
Ah... now I see. Disregard my last comment |
@thomasp85 this ensures that when you use the
.datapronoun with ggplot2, it doesn't adversely affect the labels.@paleolimbot — this should make your talk slightly simpler 😄