tern icon indicating copy to clipboard operation
tern copied to clipboard

Use `with(` calls instead of `library(` in examples

Open Melkiades opened this issue 2 years ago • 2 comments

This comes from #804

Melkiades avatar Jan 27 '23 11:01 Melkiades

@Melkiades , do you mean global change library to with?

shajoezhu avatar Feb 02 '23 06:02 shajoezhu

I think it is in general used as on.exit for packages used locally but I do not know if it is actually faster or better. https://withr.r-lib.org/articles/changing-and-restoring-state.html

We should discuss this possible enhancement. Surely it should be used for local changes (e.g. options)

Melkiades avatar Feb 02 '23 11:02 Melkiades