restart: Restart R Session

View source: R/restart.R

restartR Documentation

Restart R Session

Description

This function restarts the RStudio session and is equivalent to using the menu item Session - Restart R.

Usage

restart()

Details

The function call executeCommand("restartR") in the package rstudioapi is used to restart the R session. Note that the function restartSession() in the package rstudioapi is not equivalent to the menu item Session - Restart R since it does not unload packages loaded during an R session.

Author(s)

Takuya Yanagida takuya.yanagida@univie.ac.at

References

Ushey, K., Allaire, J., Wickham, H., & Ritchie, G. (2022). rstudioapi: Safely access the RStudio API. R package version 0.14. https://CRAN.R-project.org/package=rstudioapi

Examples

## Not run: 

# Example 1: Restart the R Session
restart()

## End(Not run)

misty documentation built on Oct. 24, 2024, 5:10 p.m.

Related to restart in misty...