get_template | R Documentation |
Templates are used to format the markdown/html of fulltext. get_template()
loads and parses the content of the JSON template file, if it is found in the
slot "template" of .Object
.
get_template(.Object, ...)
## S4 method for signature 'character'
get_template(.Object, warn = FALSE)
## S4 method for signature 'corpus'
get_template(.Object, warn = FALSE)
## S4 method for signature 'subcorpus'
get_template(.Object, warn = FALSE)
.Object |
A |
... |
Further arguments. |
warn |
A |
To learn how to write templates, consult the sample files in the folder "templates" of the installed package - see examples.
If a template is available, a list
with the parsed content of the
template file, otherwise NULL
.
use("polmineR")
corpus("GERMAPARLMINI") %>%
get_template()
# template files included in the package
template_dir <- system.file(package = "polmineR", "templates")
list.files(template_dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.