-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rstudioapi::restartSession() does not clear environment or search in R3.4.4 #95
Comments
FYI Same issue in R 3.5 |
Thanks for the bug report! I've copied this over to the RStudio repository as we'll need some changes there to support this. |
This still seems to be unresolved. Is there any intention to offer a genuine session refresh?
|
Sorry for taking so long to respond. I think |
Thanks @kevinushey! Question: Is it possible to have R(studio) run a user provided command after restart? Like |
Unfortunately no, not via that interface. |
@kevinushey Should create a new feature request for the combined functionality of |
I think we just need some way to configure |
If |
I've filed rstudio/rstudio#11378 for us to follow up this extension on the RStudio side. |
Hello, I am trying right now to run .rs.restartR() on an M1 Macbook 2020 (RStudio Version 2024.04.2+764 (2024.04.2+764)), and it does not properly clear variables or loaded packages. I have to run rstudioapi::executeCommand("restartR") to achieve that functionality. I am cross-posting this in rstudio/rstudio#14230 |
It seems that since R 3.4.4
rstudioapi::restartSession()
backs-up (and restores) the current environment and doesn't unload packages. Session > Restart R from the menu does still work as expected. Does Rstudio call a different function? Is there an option to haverstudioapi::restartSession()
behave the same as the menu?FYI settings:
The text was updated successfully, but these errors were encountered: