ConfiguratorRefClass-class: A class for configuration elements

ConfiguratorRefClass-classR Documentation

A class for configuration elements

Description

A class for configuration elements

Fields

filename

the fully qualified name of the configuration file

container

a list of configuration elements - one element per named [section]

comments

a list of configuration comments by [section] plus a [.header]

sep

the default key-value pair separator ("=") for writing

comm

the default comment character ("#") flagging comment lines

Methods

get(section, name, default = NULL)

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

parse_section(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/rscripting documentation built on Oct. 24, 2022, 5:31 p.m.