Skip to contents

citeproc reader

Usage

citeproc_reader(x)

Arguments

x

(character) a file path or string

Value

an object of class handl; see handl for more

See also

Other readers: bibtex_reader(), cff_reader(), codemeta_reader(), ris_reader()

Other citeproc: citeproc_writer()

Examples

# single
z <- system.file('extdata/citeproc.json', package = "handlr")
citeproc_reader(x = z)
#> <handl> 
#>   from: citeproc
#>   many: FALSE
#>   count: 1
#>   first 10 
#>     id/doi: https://doi.org/10.5438/4k3m-nyvg
w <- system.file('extdata/citeproc2.json', package = "handlr")
citeproc_reader(x = w)
#> <handl> 
#>   from: citeproc
#>   many: FALSE
#>   count: 1
#>   first 10 
#>     id/doi: JolySilencetablemanners2008

# many
z <- system.file('extdata/citeproc-many.json', package = "handlr")
citeproc_reader(x = z)
#> <handl> 
#>   from: citeproc
#>   many: TRUE
#>   count: 2
#>   first 10 
#>     id/doi: https://doi.org/10.5438/4k3m-nyvg
#>     id/doi: 10.4067/s0718-48082015000300006