Learn R Programming

metathis (version 1.1.4)

include_meta: Include Metadata Tags in HTML Document

Description

Use include_meta() to explicitly declare the meta() tags as an HTML dependency. In general, this is not required when knitting to an HTML document. This function explicitly attaches an htmltools::htmlDependency() and may work in some unusual cases.

Usage

include_meta(.meta)

Value

An htmltools::htmlDependency() containing the metadata tags to be included in the <head> of the HTML document.

Arguments

.meta

A meta object created by meta() or as_meta(), or returned by a meta_*() object.

See Also

Other meta_actions: write_meta()

Examples

Run this code
meta() %>%
  meta_name("github-repo" = "gadenbuie/metathis") %>%
  include_meta()

Run the code above in your browser using DataLab