Description Usage Arguments Examples
Write a list out as object to JSON-LD
1 2 | write_jsonld(x, path, context = "http://schema.org", pretty = TRUE,
auto_unbox = TRUE, ...)
|
x |
an object to be serialized to JSON |
path |
file on disk |
context |
JSON-LD context; "http://schema.org" |
pretty |
adds indentation whitespace to JSON output. Can be TRUE/FALSE or a number specifying the number of spaces to indent. See |
auto_unbox |
automatically |
... |
additional arguments passed to toJSON or fromJSON |
1 2 3 | x <- Thing(url = "http://schema.org")
tmp <- tempfile()
write_jsonld(x, tmp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.