Search for a CSL style

csl_style_find(x)

Arguments

x

(character) a full or partial journal name

Value

if no matches NULL. otherwise, one or more file paths to the style file on your machine

Examples

# setup csl_cache$cache_path_set("seasl", type = "tempdir")
#> [1] "/tmp/Rtmp23qKAt/R/seasl"
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"))
#> [1] FALSE
# find a style csl_style_find(x = "Naturae")
#> NULL
# cleanup csl_cache$delete_all() if (FALSE) { # 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") }