Learn R Programming

switchr (version 0.14.8)

flushSession: flushSession

Description

Unload currently loaded packages from the current R session

Usage

flushSession(dontunload = switchrDontUnload())

Value

NULL, called for its side-effect of unloading packages

Arguments

dontunload

Non-base packages to ignore (not detatch/unload)

Details

Attached packages are detached (and unloaded) first. After this is done, loaded packages, such as those imported by (previously) attached packages, are unloaded.

Finally, after all packages have been unloaded, native libraries loaded by those packages are unloaded (on systems where this is supported).