While coding against exercism problems' tests I noticed that RStudio's (v1.1.359 & before) Environment panel doesn't update its content when auto_test()
from the testthat
package is run, and neither when it fails. Setting the parameter env
to environment()
or globalenv()
does not change this for me (R 3.4.0 on macOS).
I'm guessing this is because tests are executed other than interactively.
However, is it possible to coerse testthat
to somehow update RStudio's Environment panel? So that one can get quick feedback on for example variable values when an auto_test()
run fails?
Thanks for any hints :-)