switch_to_site: Switch site

Description Usage Arguments Value Examples

View source: R/switch_to_site.R

Description

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.

Usage

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
)

Arguments

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

Value

None.

Examples

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)

tom-ioki/tableauR documentation built on Dec. 31, 2020, 8:43 a.m.