save.if {Pigengene} | R Documentation

## Saves an object verbosely.

### Description

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

### Usage

    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

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

[Package Pigengene version 1.18.10 Index]