Learn R Programming

desk (version 1.1.2)

new.session: R Session Reset

Description

new.session removes all objects from global environment, removes all plots, clears the console, and restores parameter settings. As default, sets the working directory to source file loction in case the function is used from an R script. As an option, resets the scientific notation (e.g., 1e-04).

Usage

new.session(cd = TRUE, sci = FALSE)

Value

None.

Arguments

cd

if cd = FALSE, the working directory is not be changend. The default, cd = TRUE, sets the working directory to source file loction.

sci

if sci = TRUE, the scientific notation is reset to the R standard option.

Examples

Run this code
# No example available to avoid possibly unwanted object deletion in user environment.

Run the code above in your browser using DataLab