Use changeInput()
to change an input's selected values. Values may be
selected using regular expression pattern matching or exact matches, see
fixed
.
changeInput(id, pattern, fixed = FALSE, invert = FALSE, reset = TRUE,
propagate = FALSE, session = getDefaultReactiveDomain())
A character string specifying the id of an input.
A character string specifying a regular expression, if fixed
is FALSE
, values which match the expression will be selected. If fixed
is TRUE
, a character vector of one or more values specifying exact values
to select.
One of TRUE
or FALSE
specifying if pattern
is interpreted
as a regular expression or a vector of character literals, defaults to
FALSE
.
One of TRUE
or FALSE
specifying how values are matched,
if TRUE
values which do not match pattern
will be selected, defaults
to FALSE
.
One of TRUE
or FALSE
indicating how to handle any currently
selected values, if TRUE
the current selection is dropped before
selecting new values, defaults to TRUE
.
One of TRUE
or FALSE
specifying if the value change
causes a re-evaluation of dependent reactives and observers, defaults to
FALSE
.
A reactive context, defaults to getDefaultReactiveDomain()
.