PrintJavascript: Print Javascript

PrintJavascriptR Documentation

Print Javascript

Description

Allows arbitrary JavaScript content to be imported into an HTML document produced with bookdown or rmarkdown. Suggested for use in Rmd documents that will be rendered in HTML; useful in supoprting user interaction with SVG elements produced by PlotCharacterMapping().

Usage

PrintJavascript(filepath)

Arguments

filepath

Path to Javascript template

Details

Note that the content will be ignored when files are compiled for PDF output.

Value

Prints the contents of the Javascript file to to stdout, executing any R code included in r blocks in the file.

Author(s)

Martin R. Smith


TGuillerme/Inapp documentation built on Feb. 4, 2024, 7:26 a.m.