Skip to contents

This function removes all objects from the global environment except for those specified in the DEFAULT_KEEP_LIST system variable. The variable is expected to be a space-separated list of object names. If the variable is not set, the function will not run.

Usage

clear_global_proj()

Note

This function should be used with caution as it modifies the global environment.

See also

rm for the underlying mechanism used to remove objects.