View source: R/csl_style_find.R
| csl_style_find | R Documentation |
Search for a CSL style
csl_style_find(x)
x |
(character) a full or partial journal name |
if no matches NULL. otherwise, one or more file paths
to the style file on your machine
# setup
csl_cache$cache_path_set("seasl", type = "tempdir")
csl_cache$mkdir()
dir.create(file.path(csl_cache$cache_path_get(), "styles"))
an <- system.file('inst/examples/acta-naturae.csl', package = 'seasl')
file.copy(an, file.path(csl_cache$cache_path_get(), "styles/acta-naturae.csl"))
# find a style
csl_style_find(x = "Naturae")
# cleanup
csl_cache$delete_all()
## Not run:
# fetch styles
csl_fetch_styles()
# single match
csl_style_find(x = "American Journal of Epidemiology")
# many matches
csl_style_find(x = "American Journal")
csl_style_find(x = "pediatrics")
csl_style_find(x = "analysis and prevention")
# no matches
csl_style_find(x = "foo bar")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.