setCachedYAMLValue: update the stored parameter value from named config field

Description Usage Arguments Value Examples

View source: R/Environment.R

Description

update the stored parameter value from named config field

Usage

1
setCachedYAMLValue(yaml = "config", field, value, subenv = NULL)

Arguments

yaml

the name of the YAML object

field

the parameter field to lookup

value

to value to update

subenv

the sub-environment to process

Value

TRUE or FALSE if the change can be made

Examples

1
2
3
4
5
6
7
init()
yamlFile <- system.file("extdata", "cas9_demo.yaml", package = "nanopoRe")
importConfigYAML(yamlFile=yamlFile)
referenceGenome <- system.file("extdata", "cas9_demo_ref.fasta",
    package = "nanopoRe")
setCachedYAMLValue(field="reference_genome", value=referenceGenome)
getCachedYAMLValue(field="reference_genome")

sagrudd/nanopoRe documentation built on June 7, 2020, 10:20 p.m.