Skip to contents

This function loads a serialized result object from the local USERM data directory. The result object is expected to be stored as an RDS file named ResObj_<id>.rds. When a custom directory is not supplied, the object is looked up in the on-demand cache (USERM_data_dir) and, if it is missing, downloaded automatically from the USERM data repository.

Usage

getRes(id, custom_dir = NULL, tag = NULL, quiet = FALSE)

Arguments

id

A character string representing the ID of the result object to retrieve.

custom_dir

Optional path to a directory containing ResObj_<id>.rds files. If NULL, the on-demand cache is used.

tag

Data release tag used when downloading. Defaults to USERM_data_version().

quiet

Logical. If TRUE, suppress progress messages.

Value

An R object containing the result data associated with the specified ID.

Examples

if (FALSE) { # \dontrun{
  res <- getRes("SCC_Bead_CD4_NFR700")
  print(res)
} # }