https://withr.r-lib.org/
Run Code With Temporarily Modified Global State • withr
A set of functions to run code with safely and temporarily modified global state. Many of these functions were originally a part of the devtools package, this...
run codemodifiedglobalstatewithr