save.if: Saves an object verbosely.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/save.if.R

Description

Saves an R object, and reports the size of the saved object in memory and on file.

Usage

1
save.if(x1, file, verbose = 1)

Arguments

x1

The object to be saved.

file

Where to save. If NULL, nothing will be saved.

verbose

A numeric determining how much detail will be printed.

Value

A list including file, and a vector of sizes of the object in memory and on file.

Author(s)

Amir Foroushani, and Habil Zare

See Also

message.if

Examples

1
2
m1 <- matrix(0, nrow=1000, ncol=1000)
save.if(m1, file="./m1.RData", verbose=3)

Pigengene documentation built on Nov. 8, 2020, 6:47 p.m.