Skip to contents

This function saves all objects (except functions and specified exclusions) from the global environment as list items in an RData file. It also creates a summary of these objects' sizes in memory.

Usage

SaveSession(Path = getwd(), ExcludeObj = NULL, Prefix = "S")

Arguments

Path

A string specifying the directory path where the output RData file should be saved. Defaults to the current working directory base::getwd().

ExcludeObj

A vector of object names (as strings) to exclude from saving.

Prefix

A string to prefix the saved file name with. Defaults to S.

Value

A tibble containing the names and sizes (in MB, rounded to 1 decimal place) of the saved objects.

Author

Ahmed El-Gabbas