I'm building a shiny app that interacts with a library I've built. Functions in that library have a bunch of optional arguments. The functions are written so that they can easily handle cases where missing(argument) == TRUE
.
Shiny's input functions allow one to set the default value of the input if the user doesn't specify it themselves. Is it possible to set the default value to be missing (i.e., nonexistent)?
For example, this is how to set the default value to NULL
, but that isn't what I want.
textInput("argument", label = "Set this optional argument",
value = NULL)
EDIT:
In all likelihood, I should just change my functions to have a default value of NULL
, rather than using the missing
function from base to set defaults. Nonetheless, I'm still curious if it's possible to set a default value to be nonexistent.