save.remove: Remove object from .RData file

Description Usage Arguments Author(s) Examples

Description

Function to remove one or more objects from an .RData file.

Usage

1

Arguments

rmv

A character vector giving the names of the object to remove from the specified file.

file

A character of length one specifying the .RData file to remove objects from.

...

Arguments passed to save.

Author(s)

Anders E Bilgrau <anders.ellern.bilgrau (at) gmail.com>

Examples

1
2
3
4
5
6
7
8
9
file <- paste(tempfile(), ".RData", sep = "")
a <- 1
b <- list(1:2)
c <- lm(rnorm(100) ~ 1)
save(a, b, c, file = file)
rm(a, b, c)
save.remove(c("a", "b"), file = file)
lst <- load(file)
print(lst)  # Only "c" remains

AEBilgrau/Bmisc documentation built on May 5, 2019, 11:28 a.m.