config: Configurations.

configR Documentation

Configurations.

Description

Getters and setters for various injector configurations.

Usage

root_config

paths_config

maps_config

Format

A list of getters and setters for a configuration.

 unset()
 set(..., drop = TRUE)
 get(key)
 get_all()
 

An object of class list of length 4.

An object of class list of length 4.

An object of class list of length 4.

Arguments

...

A (named) list of options.

key

A string (character vector of length one).

drop

A flag. Should previous options be dropped and replaced?

See Also

define, get_configs, and reset.

Examples

reset()
root_config$get_all()
root_config$unset()
root_config$get_all()
root_config$set(c("my_modules"))
root_config$get_all()
root_config$set(c("my_great_modules"), drop = FALSE)
root_config$get_all()

aclemen1/modulr documentation built on Oct. 2, 2024, 7:18 a.m.