Learn R Programming

OmicNavigator (version 1.19.0)

addObjects: Add objects

Description

Experimental. Add arbitrary R objects to a study. These will be exported via saveRDS and imported via readRDS. This allows preserving the exact structure of complex R objects.

Usage

addObjects(study, objects, reset = FALSE)

Arguments

study

An OmicNavigator study created with createStudy

objects

Any arbitrary R objects from the study. The input object is a list of objects (one per model). To share an object across multiple models, use the modelID "default".

reset

Reset the data prior to adding the new data (default: FALSE). The default is to add to or modify any previously added data (if it exists). Setting reset = TRUE enables you to remove existing data you no longer want to include in the study.

Details

The main purpose of adding a custom object to your study package is to use it in custom plots in the app. If available, they will be returned by getPlottingData. If the custom package requires additional R packages to be available to use, make sure to list these packages in the field packages when adding the custom plotting function via addPlots.

See Also

getObjects, saveRDS, readRDS