insert_args: Update Argument in a reactiveValues dist_args Object

View source: R/utils_insert_args.R

insert_argsR Documentation

Update Argument in a reactiveValues dist_args Object

Description

'insert_args()' updates a reactiveValues object containing arguments for 'reactive_dist()' without overwriting values elsewhere. It can either update an entire sublist or a selected vector within a sub-list.

Usage

insert_args(
  new_arg,
  dist_args,
  i_nm = c("vac", "inf", "symp", "test", "detect"),
  j_nm = NULL
)

Arguments

new_arg

The replacement for the argument to be updated

dist_args

Existing arguments for 'calc_dist()'

i_nm

The name of the sub-list to be updated

j_nm

The name of the specific vector to be updated, if any

Value

An updated reactiveValues object


jesse-smith/covidscreen documentation built on June 15, 2022, 7:46 p.m.