A new feature is the creation of a minimal schemaorg.json for insertion on your website's webpage for Search Engine Optimization,
when the write_minimeta
argument of write_codemeta()
is TRUE
.
You could e.g. use the code below in a chunk in README.Rmd with results="asis"
.
glue::glue('<script type="application/ld+json"> {glue::glue_collapse(readLines("schemaorg.json"), sep = "\n")} </script>')
Refer to Google documentation for more guidance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.