README.md

configurator

Simple configuration file (INI) handling in R

Installation

It's easy to install using Hadley Wickham's devtools.

library(devtools)
install_github('BigelowLab/configurator')

Usage

# read the example
Cfg <- Configurator(system.file("extdata", "example.cfg", package = "configurator"))
# show it
Cfg
[Foo]
Friday=yeah!
time=lunch
[Bar]
dog=Spike    
fleas=31000
state=sleeping
# get an item
n_fleas <- as.numeric(Cfg$get("Bar", "fleas", default = 0))
n_fleas


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