save.session: save.session Function

Description Usage Arguments Details See Also Examples

View source: R/backupSession.R

Description

This function saves R session images, history, ls.str() and sessionInfo() files which can be loaded with load.session(), load.mdata() and load.sinfo().

Usage

1
2
3
save.session(basename = "NULL", version = format(Sys.time(),
  "%y.%m.%d.%H.%M"), path = getwd(), verbose = FALSE,
  force = FALSE)

Arguments

basename

Basename for the R session images, history and session info files.

version

A date string or version number used as part of the backup filenames. Cannot be an empty string. Defaults to year.month.date.hour.minute formatted timestamps.

path

Directory to save backup files to. Defaults to current working directory. Creates directories unless they exist.

verbose

Print session loading progress messages. Must be either TRUE or FALSE. Defaults to FALSE.

force

Overwrite existing files. Must be either TRUE or FALSE. Defaults to FALSE.

Details

History files are NOT saved in non-interactive R sessions.

See Also

load.session, load.mdata and load.sinfo

Examples

1
save.session(basename = "projectX", path = "./backups", version = "01.03.18.11.43")

makeyourownmaker/backupSession documentation built on Jan. 23, 2021, 8:34 a.m.