Description Usage Arguments Value Examples
View source: R/switch_to_site.R
Can be used to switch between sites on Tableau Server. This method is currently not available for Tableau Online. The content URL is not the site name. The content URL is the value that in the server environment is referred to as the site ID.
1 2 3 4 5 6 | switch_to_site(
server_url = Sys.getenv("TABLEAU_SERVER_URL"),
api_version = Sys.getenv("TABLEAU_API_VERSION"),
api_token = Sys.getenv("TABLEAU_API_TOKEN"),
site_url
)
|
server_url |
Tableau Server URL |
api_version |
The Tableau REST API version |
api_token |
The API Access Token that was retrieved when signing in to Tableau Server |
site_url |
The URL of the site to switch to |
None.
1 2 3 4 5 6 7 8 | ## Not run:
switch_to_site(
server_url = Sys.getenv("TABLEAU_SERVER_URL"),
api_version = Sys.getenv("TABLEAU_API_VERSION"),
api_token = Sys.getenv("TABLEAU_API_TOKEN"),
site_url = "MarketingSite")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.