| cdnify_rmd | R Documentation |
This function replaces dependencies in HTML Documents knit from .Rmd files.
cdnify_rmd(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 RMarkdown Document"
author: "Engelbert Humperdinck"
output:
html_document:
self_contained: false
---
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.