[Stable]

This allows organisations/individuals with their own nm object field preferences to set these.

nm_default_fields(field_list)

Arguments

field_list

Optional named list or vector. Names correspond to function names and object fields, values correspond to what will be set.

Value

if field_list is missing, will return value of getOption("nm_default_fields") otherwise will set option nm_default_fields.

Examples


nm_default_fields()
#> $cmd
#> [1] "execute {ctl_name} -dir={run_dir}"
#> 
nm_default_fields(list(
  cmd = "execute {ctl_name} -dir={run_dir}"
))
nm_default_fields()
#> $cmd
#> [1] "execute {ctl_name} -dir={run_dir}"
#>