That is, it does not restart it in the same directory as it was first launched in, which might be what's wanted (at least sometimes).
Suggestion
When using startup::startup(), the startup directory (unless changed prior to calling that function) is recorded internally and available via startup::startup_session_options(), e.g.
Issue
startup::restart()
restarts the R session in the current working directory (according togetwd()
), e.g.That is, it does not restart it in the same directory as it was first launched in, which might be what's wanted (at least sometimes).
Suggestion
When using
startup::startup()
, the startup directory (unless changed prior to calling that function) is recorded internally and available viastartup::startup_session_options()
, e.g.The
restart()
function could be support reset to this folder using something like:and if one prefer to restart in the current folder, one can use:
Also, instead of waiting until
startup::startup()
, the startup folder should probably be recorded already in.onLoad()
.