Learn R Programming

Tmisc (version 0.1.22)

saveit: Rename objects while saving.

Description

Allows you to rename objects as you save them. See http://stackoverflow.com/a/21248218/654296.

Usage

saveit(..., file = stop("'file' must be specified"))

Arguments

...

Objects to save.

file

Filename/path where data will be saved.

Examples

Run this code
# NOT RUN {
foo <- 1
saveit(bar=foo, file="foobar.Rdata")
# }
# NOT RUN {
  
# }

Run the code above in your browser using DataLab