tests/testthat/_snaps/parse_citation.md

We can parse meta tags

[1] "rmarkdown citation parsed with codemeta DESCRIPTION"
[[1]]
[[1]]$`@type`
[1] "SoftwareSourceCode"

[[1]]$datePublished
[1] "2021"

[[1]]$author
[[1]]$author[[1]]
[[1]]$author[[1]]$`@type`
[1] "Person"

[[1]]$author[[1]]$givenName
[1] "Carl"

[[1]]$author[[1]]$familyName
[1] "Boettiger"


[[1]]$author[[2]]
[[1]]$author[[2]]$`@type`
[1] "Person"

[[1]]$author[[2]]$givenName
[1] "Maëlle"

[[1]]$author[[2]]$familyName
[1] "Salmon"



[[1]]$name
[1] "rmarkdown: A Smaller 'codemetar' Package"

[[1]]$url
[1] "https://github.com/cboettig/codemeta"

[[1]]$description
[1] "R package version 0.1.0"

We can parse citations with citation(auto = meta)

[1] "citation with citation(auto = meta)"
[[1]]
[[1]]$`@type`
[1] "SoftwareSourceCode"

[[1]]$datePublished
[1] "2021"

[[1]]$author
[[1]]$author[[1]]
[[1]]$author[[1]]$`@type`
[1] "Person"

[[1]]$author[[1]]$givenName
[1] "Carl"

[[1]]$author[[1]]$familyName
[1] "Boettiger"

[[1]]$author[[1]]$email
[1] "cboettig@gmail.com"

[[1]]$author[[1]]$`@id`
[1] "https://orcid.org/0000-0002-1642-628X"


[[1]]$author[[2]]
[[1]]$author[[2]]$`@type`
[1] "Person"

[[1]]$author[[2]]$givenName
[1] "Maëlle"

[[1]]$author[[2]]$familyName
[1] "Salmon"

[[1]]$author[[2]]$`@id`
[1] "https://orcid.org/0000-0002-2815-0399"



[[1]]$name
[1] "codemeta: A Smaller 'codemetar' Package"

[[1]]$url
[1] "https://CRAN.R-project.org/package=codemeta"

[[1]]$description
[1] "R package version 0.1.0"


[[2]]
[[2]]$`@type`
[1] "ScholarlyArticle"

[[2]]$datePublished
[1] "2016"

[[2]]$author
[[2]]$author[[1]]
[[2]]$author[[1]]$`@type`
[1] "Person"

[[2]]$author[[1]]$givenName
[1] "Carl"

[[2]]$author[[1]]$familyName
[1] "Boettiger"


[[2]]$author[[2]]
[[2]]$author[[2]]$`@type`
[1] "Person"

[[2]]$author[[2]]$givenName
[1] "Scott"

[[2]]$author[[2]]$familyName
[1] "Chamberlain"


[[2]]$author[[3]]
[[2]]$author[[3]]$`@type`
[1] "Person"

[[2]]$author[[3]]$givenName
[1] "Rutger"

[[2]]$author[[3]]$familyName
[1] "Vos"


[[2]]$author[[4]]
[[2]]$author[[4]]$`@type`
[1] "Person"

[[2]]$author[[4]]$givenName
[1] "Hilmar"

[[2]]$author[[4]]$familyName
[1] "Lapp"



[[2]]$name
[1] "{RNeXML}: {A} Package for Reading and Writing Richly Annotated Phylogenetic, Character, and Trait Data in {R}"

[[2]]$identifier
[1] "10.1111/2041-210X.12469"

[[2]]$pagination
[1] "352--357"

[[2]]$`@id`
[1] "https://doi.org/10.1111/2041-210X.12469"

[[2]]$sameAs
[1] "https://doi.org/10.1111/2041-210X.12469"

[[2]]$isPartOf
[[2]]$isPartOf$`@type`
[1] "PublicationIssue"

[[2]]$isPartOf$datePublished
[1] "2016"

[[2]]$isPartOf$isPartOf
[[2]]$isPartOf$isPartOf$`@type`
[1] "PublicationVolume" "Periodical"

[[2]]$isPartOf$isPartOf$volumeNumber
[1] "7"

[[2]]$isPartOf$isPartOf$name
[1] "Methods in Ecology and Evolution"




[[3]]
[[3]]$`@type`
[1] "Book"

[[3]]$datePublished
[1] "2016"

[[3]]$author
[[3]]$author[[1]]
[[3]]$author[[1]]$`@type`
[1] "Person"

[[3]]$author[[1]]$givenName
[1] "Hadley"

[[3]]$author[[1]]$familyName
[1] "Wickham"



[[3]]$name
[1] "ggplot2: Elegant Graphics for Data Analysis"

[[3]]$url
[1] "https://ggplot2.tidyverse.org"


cboettig/metar documentation built on Nov. 16, 2023, 5:39 a.m.