Restart the RStudio session.
restartSession(command = "", clean = FALSE)The restartSession function was added in version 1.1.281 of
RStudio. Support for the clean argument was added for version 2024.04
release of RStudio; it is silently ignored in older versions of RStudio.