tableau_invoke | R Documentation |
Simulates invoking a Tableau extension function from a Tableau calculated
field SCRIPT_*
call. Intended for unit testing of plumbertableau extensions.
tableau_invoke(pr, script, ..., .toJSON_args = NULL, .quiet = FALSE)
pr |
Either a tableau_extension style Plumber router object, or, the filename of a plumber.R that implements a Tableau extension. |
script |
The script string that identifies the plumber route to invoke.
(Equivalent to the first argument to |
... |
Zero or more unnamed arguments to be passed to the script. |
.toJSON_args |
Additional options that should be passed to
|
.quiet |
If |
The object that was returned from the request, JSON-decoded using
jsonlite::parse_json
.
pr_path <- system.file("plumber/stringutils/plumber.R",
package = "plumbertableau")
tableau_invoke(pr_path, "/lowercase", LETTERS[1:5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.