Skip to contents

codemeta reader

Usage

codemeta_reader(x)

Arguments

x

(character) a file path or string (character or json)

Value

an object of class handl; see handl for more

See also

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

Other codemeta: codemeta_writer()

Examples

# single
(z <- system.file('extdata/codemeta.json', package = "handlr"))
#> [1] "/usr/local/lib/R/site-library/handlr/extdata/codemeta.json"
codemeta_reader(x = z)
#> <handl> 
#>   from: codemeta
#>   many: FALSE
#>   count: 1
#>   first 10 
#>     id/doi: https://doi.org/10.5063/f1m61h5x

# many
(z <- system.file('extdata/codemeta-many.json', package = "handlr"))
#> [1] "/usr/local/lib/R/site-library/handlr/extdata/codemeta-many.json"
codemeta_reader(x = z)
#> <handl> 
#>   from: codemeta
#>   many: TRUE
#>   count: 2
#>   first 10 
#>     id/doi: https://doi.org/10.5063/f1m61h5x
#>     id/doi: https://doi.org/10.5063/f1m61h5x