cdnify_rmd: CDNify an .Rmd HTML Document

View source: R/cdnify_rmd.R

cdnify_rmdR Documentation

CDNify an .Rmd HTML Document

Description

This function replaces dependencies in HTML Documents knit from .Rmd files.

Usage

cdnify_rmd(filename, libdir = sub(".html$", "_files", filename))

Arguments

filename

.html file to CDNify.

libdir

Directory containing dependencies (defaults to filename_files).

Details

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
---

szego/cdnce documentation built on March 11, 2023, 9:33 p.m.