Skip to contents

Core

Main R6 class used to parse .twb/.twbx workbooks.

TwbParser TWBParser
Tableau Workbook Parser (R6)

TWBX helpers

twbx_list()
List contents of a Tableau .twbx
extract_twb_from_twbx()
Extract the .twb (and optionally all files) from a .twbx
twbx_extract_files()
Extract specific files from a .twbx

Extraction

extract_named_connections()
Extract <named-connection> entries from a TWB
extract_datasource_details()
Extract datasource details from a Tableau TWB
extract_raw_fields()
Extract non-calculated, non-parameter fields from a TWB
extract_columns_with_table_source()
Extract columns with their source tables from a TWB
extract_calculated_fields()
Extract calculated fields from a TWB
extract_parameters()
Extract parameter fields from a TWB
extract_relations()
Extract all <relation> tags from a TWB
extract_joins()
Extract Tableau join clauses from <relation type="join"> nodes
extract_relationships()
Extract modern relationships from a Tableau TWB
twb_initial_sql()
Extract Initial SQL statements from connections (if present)
twb_custom_sql()
Extract Custom SQL relations from a TWB XML
twb_published_refs()
Detect likely references to published data sources (vs embedded)

Inference & validation

infer_implicit_relationships()
Infer implicit relationships between tables from field metadata
validate_relationships()
Validate relationships against available datasources and fields

Lineage & graphs

build_dependency_graph()
Build a field dependency graph from calculated fields
plot_dependency_graph()
Plot a field dependency graph
plot_relationship_graph()
Plot a field-level relationship DAG (legacy)
plot_source_join_graph()
Plot a source join graph

Formatting & display

tableau_formula_pretty()
Prettify a Tableau calculation formula for display
prettify_calculated_fields()
Add a prettified formula column to calculated fields table

Server/Cloud (optional)

tbs_publish_info()
Publish info for a workbook or datasource on Tableau Server/Cloud
tbs_custom_sql_graphql()
Custom SQL (Metadata API) for a published workbook/datasource