R Notebook

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")


Try the params package in your browser

Any scripts or data that you put into this service are public.

params documentation built on March 2, 2021, 1:07 a.m.