make_settings: Make a settings function

Description Usage Value Examples

View source: R/settings.R

Description

The function simplifies the creation of settings functions which return their arguments as a list. It works by combining the formals of the calling function with the arguments of the acutal call and returns the results as a list

Usage

1

Value

A list

Examples

1
2
3
my_settings <- function(opt_1 = 1) make_settings()
settings <- my_settings()
settings2 <- my_settings(opt_1 = 2)

sebastianueckert/funsu documentation built on Nov. 5, 2019, 8:48 a.m.