Closed mdequeljoe closed 4 years ago
I notice that when primitive functions are printed via prettycode the NULL environment is included:
prettycode
prettycode::prettycode() min #> .Primitive("min") #> NULL
from:
https://github.com/r-lib/prettycode/blob/33c541f7f4256fde95a1f28800baff433b898430/R/print.R#L78
Yeah, it is not really informative, so we might as well leave it out. I don't think it is possible for a non-primitive function to have a NULL environment.
NULL
Do you want to submit a PR?
sure will do
I notice that when primitive functions are printed via
prettycode
the NULL environment is included:from:
https://github.com/r-lib/prettycode/blob/33c541f7f4256fde95a1f28800baff433b898430/R/print.R#L78