display_explorable: Display Explorable in the HTML Viewer

Description Usage Arguments

View source: R/explorables.R

Description

This function can be used to display an explorable web app in a

Usage

1
2
3
4
display_explorable(path, subdir = Sys.getenv("DC_EXPLORABLES_SUBDIR",
  ""), cdn = Sys.getenv("DC_EXPLORABLES_CDN", FALSE),
  type = Sys.getenv("DC_EXPLORABLES_TYPE", "dev"), version = "latest",
  index = "index.html")

Arguments

path

Path to the folder containing index.html.

subdir

The parent directory for the course.

cdn

A boolean indicating if asset should be served from CDN.

type

A string indicating whether to use dev, staging, or prod.

version

A string indicating the version of the asset.

index

Name of the html file (defaults to index.html)


datacamp/rexplorables documentation built on June 6, 2021, 4:12 p.m.