| cdnify_tufte | R Documentation |
This function replaces dependencies in .html pages generated using the tufte package.
cdnify_tufte(filename, libdir = sub(".html$", "_files", filename))
filename |
.html file to CDNify. |
libdir |
Directory containing dependencies (defaults to filename_files). |
The page must have been knit with self_contained: false in the
YAML header. For example, a valid header would be:
---
title: "An Example Using the Tufte Style"
author: "John Smith"
output:
tufte::tufte_html:
tufte_features: ["fonts", "background", "italics"]
self_contained: false
---
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.