refresh: Refresh R Shell

Description Usage Arguments Examples

View source: R/refresh.R

Description

This function effectively generates a new R shell. It clears the global environment, detaches any packages and clears the console. Probably most useful when testing a script as if it were in a fresh shell.

Usage

1
refresh(keep = NULL)

Arguments

keep

A vector of CASE-SENSITIVE object names that you wish to be spared from the mighty axe of refresh().

Examples

1
2
## Not run ##
refresh()

danjamesadams/Dantools documentation built on Aug. 24, 2019, 6:15 p.m.