Description Usage Arguments Value See Also Examples
View source: R/codemeta_writer.R
codemeta writer
1 | codemeta_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()
,
rdf_xml_writer()
,
ris_writer()
,
schema_org_writer()
Other codemeta:
codemeta_reader()
1 2 3 4 5 6 7 8 9 10 11 | if (requireNamespace("bibtex", quietly=TRUE)) {
(x <- system.file('extdata/crossref.bib', package = "handlr"))
(z <- bibtex_reader(x))
codemeta_writer(z)
}
# many citeproc to schema
z <- system.file('extdata/citeproc-many.json', package = "handlr")
w <- citeproc_reader(x = z)
codemeta_writer(w)
codemeta_writer(w, pretty = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.