Initialize a metathis object (i.e. a list of HTML metadata tags), test if
an object is a metathis object, or coerce a list of meta
tags to be a
metathis object.
meta() is_meta(x) as_meta(x)
x | A list or metathis object |
---|
A meta
object, or a set of <meta>
HTML tags inside an HTML
<head>
tag. For use in rmarkdown::html_document()
, shiny::runApp()
,
or other HTML locations.
is_meta
: Test if an objects is a metathis object
as_meta
: Convert a list of meta tags into a metathis object.
Other meta:
meta_apple_itunes_app()
,
meta_apple_web_app()
,
meta_general()
,
meta_geo()
,
meta_name()
,
meta_social()
,
meta_tag()
,
meta_viewport()
#> [1] TRUElist_of_meta_tags <- list( htmltools::tags$meta(github = "gadenbuie"), htmltools::tags$meta(twitter = "grrrck") ) as_meta(list_of_meta_tags)#> <meta github="gadenbuie"/> #> <meta twitter="grrrck"/>