seasl is an R client for exploring CSL styles.

This package is inspired by the Ruby gem csl

The Citation Style Language 1.0.1 specification

Package API:

#>  - as.location
#>  - csl_cache
#>  - csl_fetch_locales
#>  - csl_fetch_styles
#>  - csl_locale_exists
#>  - csl_locale_load
#>  - csl_locales
#>  - csl_style_exists
#>  - csl_style_find
#>  - csl_style_load
#>  - csl_style_xml
#>  - csl_styles



Download styles and locales

First, you may want to download style and locale files. csl_fetch_styles() and csl_fetch_locales() download the files to your machine. See ?csl_cache for caching information, including how to change the cache location.

Styles retrieved from the Github repo at

Locales retrieved from the Github repo at

File paths to CSL styles and locales

calling csl_styles without inputs gives all styles, with separate lists for dependent and independent styles

calling csl_styles with an input gives the path to that style, if found

Same patterns go for locales (note that there are far fewer locales than styles)

Alternatively, you can try to find a style by using csl_style_find()

Load CSL style from a URL

jps <- csl_style_load('')