knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Before you use plumbertableau extensions in Tableau, you'll need to configure your extension server in Tableau. See "Publishing plumbertableau Extensions to RStudio Connect" for detailed instructions on setting up Tableau and RStudio Connect to work together.
plumbertableau extensions are used within calculated fields in Tableau, with calls to Tableau's
plumbertableau automatically generates a documentation page with example calls for each endpoint in the extension. These are what you see when you view the extension on RStudio Connect.
This page includes the following information about the extension:
For each endpoint, it includes:
SCRIPT_*command, ready for use in a Tableau workbook
You can copy and paste the usage example (the
SCRIPT_* command) into a calculated field in Tableau (it generates the correct URL), and replace the argument placeholders with actual values from the Tableau workbook.
We've found that a few practices in Tableau ensure that the data you pass to a plumbertableau extension is sent correctly.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.