csl_styles: List locally stored styles

View source: R/styles.R

csl_stylesR Documentation

List locally stored styles

Description

List locally stored styles

Usage

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")
csl_cache$cache_path_get()

# List style files
csl_styles()
csl_styles("apa")
csl_styles("zdm")

csl_style_exists("apa")
csl_style_exists("apaggg")

# cleanup
csl_cache$delete_all()

ropensci/seasl documentation built on Sept. 11, 2022, 7:21 p.m.