tableau_handler {plumbertableau} | R Documentation |
Create a Tableau-compliant handler for a function
Description
Creates an object that can translate arguments from Tableau to R, and return values from R to Tableau.
Usage
tableau_handler(args, return, func)
Arguments
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 |
Value
A tableau_handler
object that is a validated version of the
provided func
with additional attributes describing the expected arguments
and return values