read_nacho: Read a saved NACHO object

View source: R/read_nacho.R

read_nachoR Documentation

Read a saved NACHO object

Description

Reads an .rds file written with saveRDS() from any NACHO version. NACHO 2 objects go through upgrade_nacho(). NACHO 3 objects are rebuilt with the current class, because each saved S7 object carries a copy of the class it was made with.

Usage

read_nacho(path)

Arguments

path

Path to an .rds file.

Details

Only read files you trust: readRDS() can run code stored in a crafted file, notably in R before 4.4.0.

Value

A nacho object.

See Also

upgrade_nacho()

Examples

path <- tempfile(fileext = ".rds")
saveRDS(GSE74821, path)
read_nacho(path)

NACHO documentation built on Nov. 2, 2026, 5:09 p.m.