Creates an object that can translate arguments from Tableau to R, and return values from R to Tableau.
tableau_handler(args, return, func)
args | A named list describing the arguments that are expected from
valid Tableau requests. The names in the named list can be any unique
variable names. The values in the named list must each be either a string
indicating the expected data type for that argument ( |
---|---|
return | A string indicating the data type that will be returned from
|
func | A function to be used as the handler function. Code in the body
of the function will automatically be able to access Tableau request args
simply by referring to their names in |
A tableau_handler
object that is a validated version of the
provided func
with additional attributes describing the expected arguments
and return values