View source: R/schema_org_writer.R
schema_org_writer | R Documentation |
Schema org writer
schema_org_writer(z, auto_unbox = TRUE, pretty = TRUE, ...)
z |
an object of class |
auto_unbox |
(logical) automatically "unbox" all atomic
vectors of length 1 (default: |
pretty |
(logical) adds indentation whitespace to JSON output
(default: |
... |
further params passed to |
an object of class json
Other writers:
bibtex_writer()
,
cff_writer()
,
citeproc_writer()
,
codemeta_writer()
,
rdf_xml_writer()
,
ris_writer()
if (requireNamespace("bibtex", quietly=TRUE)) { (z <- system.file('extdata/bibtex.bib', package = "handlr")) (tmp <- bibtex_reader(z)) schema_org_writer(tmp) schema_org_writer(tmp, pretty = FALSE) } # many citeproc to schema z <- system.file('extdata/citeproc-many.json', package = "handlr") w <- citeproc_reader(x = z) schema_org_writer(w) schema_org_writer(w, pretty = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.