ConfiguratorRefClass-class: A Reference Class for configurations

Description Fields Methods

Description

A Reference Class for configurations

Fields

filename

the name of the configuration file

comment

the comment character

container

a named list of the configuration sections

Methods

get(section, name, default = NULL)

Retrieve the specified item in the sectioned named or NULL of not found

parse_line(s)

Given one or more raw text lines, parse the key=value pairs into the expected named character vector

read_file(filename = .self$filename)

read the specified configuration file

set(section, name, value)

Set the value of the specified item in the sectioned named

write_file(filename = .self$filename, append = FALSE)

write the specified configuration file


BigelowLab/configurator documentation built on May 5, 2019, 2:42 p.m.