io-parameters: Parse/export analysis parameters

parseParametersR Documentation

Parse/export analysis parameters

Description

Import analysis parameters from a .yaml format file or export an AnalysisParameters object to .yaml format.

Usage

parseParameters(path)

exportParameters(d, file = "analysis_parameters.yaml")

## S4 method for signature 'AnalysisParameters'
exportParameters(d, file = "analysis_parameters.yaml")

## S4 method for signature 'Analysis'
exportParameters(d, file = "analysis_parameters.yaml")

Arguments

path

file path of .yaml file to parse

d

S4 object of class AnalysisParameters or Analysis

file

File name and path to export to

Examples

## Import analysis parameters
paramFile <- system.file('defaultParameters.yaml',package = 'metabolyseR')
p <- parseParameters(paramFile)
p

## Not run: 
## Export analysis parameters
exportParameters(p,file = 'analysis_parameters.yaml')

## End(Not run)

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.