Learn R Programming

rstudioapi (version 0.17.0)

restartSession: Restart the R Session

Description

Restart the RStudio session.

Usage

restartSession(command = "", clean = FALSE)

Arguments

command

A command (as a string) to be run after restarting.

clean

Boolean; when FALSE, the current R session (including loaded packages and data objects) will be saved and restored in the new session.