Closed krlmlr closed 3 years ago
Can we register in the top-level environment and set the eval env to the top-level env, will it be picked up from there?
Need to check where UseMethod()
looks — is it always global env or is it top level env?
I think it's probably ok for this to match the behaviour in vignettes; i.e. if you're defining an S3 class for an example, you need to manually register the method.
Should the default be to evaluate in the global environment and to restore its contents after evaluation?
Downstream: https://github.com/r-lib/pillar/issues/221
Rendered example: https://pillar.r-lib.org/reference/format_type_sum.html
Created on 2021-05-24 by the reprex package (v2.0.0)