Simple configuration file (INI) handling in R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
inst/extdata
man
DESCRIPTION
LICENSE
NAMESPACE
README.md

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