Skip to contents

Create a faketable bare input call

Usage

input_call(fun, args)

Arguments

fun

A bare shiny input function

args

A list of named arguments to pass to fun. This should not include an inputId.

Value

A input_call() object

Examples

input_call(shiny::textInput, args = list(label = 'Text Input'))
#> function (...) 
#> {
#>     rlang::eval_tidy(rlang::call_modify(rlang::call2(fun, !!!args), 
#>         ..., .homonyms = "last"))
#> }
#> <bytecode: 0x564d1fb7b478>
#> <environment: 0x564d24459768>
#> attr(,"class")
#> [1] "function"   "input_call"