yaml_skeleton.Rd
Tableau extensions need to provide a
manifest
(.trex
) file that Tableau users can load into their dashboards. This file
contains metadata such as the ID and name of the extension, the name and
email of the extension author, logo image, etc. With shinytableau, you as the
extension author do not create this file directly; instead, you provide a
simpler manifest.yml file.
yaml_skeleton(filename = "manifest.yml")
tableau_manifest_from_yaml(path = ".")
filename | The (relative or absolute) file path where the YAML manifest
file should be written. For an app.R based app, the recommended file path
is |
---|---|
path | The (relative or absolute) file or directory path from which to
load an existing YAML manifest file. If the path is a directory, the
filename |
yaml_skeleton
returns the filename, invisibly.
tableau_manifest_from_yaml
returns a manifest object that is suitable for
passing to tableau_extension()
.
Call yaml_skeleton()
from the R console to create a manifest.yml file.
Call tableau_manifest_from_yaml()
from your app.R to load it, and pass the
resulting object to tableau_extension()
.
See the Getting Started guide to learn more.
If the YAML file approach is inconvenient for some reason, you can also use
tableau_manifest()
to programmatically create a manifest.
if (FALSE) {
# Generate a YAML manifest file in the
# root directory of the project
yaml_skeleton()
# Generate the skeleton YAML manifest
# file (called `manifest.yml`) in the
# `app` subdirectory
yaml_skeleton(filename = "app/manifest.yml")
}