csl_locale_load | R Documentation |
Load a CSL locale
csl_locale_load(input, ...)
input |
URL or local file path |
... |
Curl options passed on to crul::HttpClient |
This function fetches the style XML document, and parses it into
a more reasonble R list that's easy to navigate. If you want the raw XML,
see locale_xml
## Not run: # Load a locale from the CSL github repo de_DE <- 'https://github.com/citation-style-language/locales/raw/master/locales-de-DE.xml' res <- csl_locale_load(de_DE) ## Query style information res$info res$info$translators res$info$license res$info$date_updated res$dates res$style_options res$terms # Load from a local style file ## just specify the style and we read from the local style files csl_locale_load(input="fr-FR") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.