Description Usage Arguments Value Examples
View source: R/tableau_extension.R
Most of the time, you won't call this function directly. Instead, you'll
place it at the end of a Plumber router, under a #* @plumber
annotation,
with no trailing parentheses or arguments. This tells Plumber to use the
function to modify the router object.
1 2 3 |
pr |
A plumber router |
A modified plumber router that functions as a Tableau Analytics Extension
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
library(plumber)
library(plumbertableau)
#* Capitalize incoming text
#* @post /capitalize
function(req, res) {
dat <- req$body$data
toupper(dat)
}
#* @plumber
tableau_extension
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.