List locally stored styles

csl_styles(style = NULL)

csl_style_exists(style)

Arguments

style

(character) Style name

Value

If style=NULL, a list of length two, independent and dependent styles. If style is not NULL, then a full path to the style file is returned if the style exists.

Examples

# setup csl_cache$cache_path_set("seasl", type = "tempdir")
#> [1] "/tmp/Rtmp23qKAt/R/seasl"
csl_cache$cache_path_get()
#> [1] "/tmp/Rtmp23qKAt/R/seasl"
# List style files csl_styles()
#> $independent #> character(0) #> #> $dependent #> character(0) #>
csl_styles("apa")
#> NULL
csl_styles("zdm")
#> NULL
csl_style_exists("apa")
#> [1] FALSE
csl_style_exists("apaggg")
#> [1] FALSE
# cleanup csl_cache$delete_all()
#> no files found