library(params)

# create a new env for params:
opts = params::new_opts()

# currently this is empty
opts$get()

# set some values
opts$set(
  name = "mytool",
  basepath = "~/apps/mytool", 
  binpath = "{{{basepath}}}/bin")

# get the values:
opts$get("binpath")

# update a path
opts$set(name = "newtool")

opts$get("name")

# one can load a tsv, of key  value using
# opts$load("conf.tsv")


sahilseth/params documentation built on Sept. 30, 2022, 10:14 a.m.