saveme: Make a backup rdata file for future reference

View source: R/helpers_misc.R

savemeR Documentation

Make a backup rdata file for future reference

Description

I often use R over a sshfs connection, sometimes with significant latency, and I want to be able to save/load my R sessions relatively quickly. Thus this function uses pxz to compress the R session maximally and relatively fast. This assumes you have pxz installed and >= 4 CPUs.

Usage

saveme(
  directory = "savefiles",
  backups = 2,
  cpus = 6,
  filename = "Rdata.rda.xz"
)

Arguments

directory

Directory to save the Rdata file.

backups

How many revisions?

cpus

How many cpus to use for the xz call

filename

Choose a filename.

Value

Command string used to save the global environment.

See Also

[loadme()]

Examples

## Not run: 
 saveme()

## End(Not run)

elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.