You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eliminate all uses of on.exit() and consider shimming, like we've done with interactive() (steering usage towards is_interactive()). Context: when usage of on.exit() slips in, it clobbers cleanup scheduled with withr::local_*() functions, often at some distance. Using on.exit(add = TRUE, after = FALSE) "rescues" things, but it's even easier and more consistent to stay within the withr toolkit.
The text was updated successfully, but these errors were encountered:
Closes#1217Closes#1125Closes#1211
Notes:
* The need to understand and fix#1125 came up incidentally, in the write_*() tests
* testthat::local_mock() calls on.exit(), which clashed my new shim and I know I need to move away from the testthat mocking functions anyway; `with_mock()` fixes things up temporarily
Eliminate all uses of
on.exit()
and consider shimming, like we've done withinteractive()
(steering usage towardsis_interactive()
). Context: when usage ofon.exit()
slips in, it clobbers cleanup scheduled withwithr::local_*()
functions, often at some distance. Usingon.exit(add = TRUE, after = FALSE)
"rescues" things, but it's even easier and more consistent to stay within the withr toolkit.The text was updated successfully, but these errors were encountered: