Skip to contents

Downloads a data source in .tdsx format and saves it as a file on your computer.

Usage

download_datasource(
  tableau,
  api_version = 3.16,
  datasource_id,
  file_path,
  include_extract = TRUE
)

Arguments

tableau

A list containing the Tableau authentication variables: `base_url`, `token`, `user_id`, and `site_id`.

api_version

The API version to use (default: 3.16).

datasource_id

The ID of the data source to download.

file_path

The path to save the downloaded data source.

include_extract

Logical indicating whether to include the extract when downloading the data source (default: TRUE).

Value

A binary vector containing the data source in .tdsx format.