loadConnection: Save/Load an ImmuneSpaceConnection object from disk

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Connection can hold a lot of data in cache. If a lot of work has been done (e.g: lots of downloaded datasets and gene-expression matrices), it can be useful to save the connection for later work or even offline use.

Usage

1
2
3

Arguments

file

The file name to be saved to or loaded from

con

An ImmuneSpaceConnection. The connection to save to file. To be loaded later using loadConnection.

Value

An ImmuneSpaceConnection object

Examples

1
2
3
4
5
6
7
8
9
# Sample saved connection with pre-downloaded expression matrices and datasets
saved <- system.file("extdata/saved_con.rds", package = "ImmuneSpaceR")
new_con <- loadConnection(saved)
new_con
names(new_con$cache)
## Not run: 
saveConnection(new_con, tempfile())

## End(Not run)

ImmuneSpaceR documentation built on Dec. 21, 2020, 2:01 a.m.