tests/testthat/_snaps/as_cff.md

as.cff still works

Code
  l2
Output
  cff-version: 1.2.0
  title: Manipulating files

as_cff.person

Code
  as_cff(pers)
Output
  - family-names: person
    given-names: A
    email: fake@gmail.com
    orcid: https://orcid.org/0000-0001-8457-4658
    affiliation: Real Madrid
    website: https://www.google.com/
Code
  single_cff
Output
  family-names: person
  given-names: A
  email: fake@gmail.com
  orcid: https://orcid.org/0000-0001-8457-4658
  affiliation: Real Madrid
  website: https://www.google.com/

as_cff.bibentry, toBibtex

Code
  bbb
Output
  - type: generic
    title: title
    authors:
    - name: Author
    editors:
    - name: Editor
Code
  b_single_cff
Output
  type: generic
  title: title
  authors:
  - name: Author
  editors:
  - name: Editor

as_cff.default

Code
  as_cff(b)
Output
  a: '1'

Other convertes

Code
  noadd <- cff(chocolate = "New York", version = 5)
Message
  i Found misspelled keys. Trying to map:
  x chocolate: No match, removing.

Reading full cff

Code
  df
Output
                                class
  authors            cff_pers_lst|cff
  contact            cff_pers_lst|cff
  identifiers         cff_ref_lst|cff
  references          cff_ref_lst|cff
  preferred-citation      cff_ref|cff
Code
  df2
Output
                               class
  authors           cff_pers_lst|cff
  contact           cff_pers_lst|cff
  editors           cff_pers_lst|cff
  editors-series    cff_pers_lst|cff
  recipients        cff_pers_lst|cff
  senders           cff_pers_lst|cff
  translators       cff_pers_lst|cff
  conference            cff_pers|cff
  database-provider     cff_pers|cff
  institution           cff_pers|cff
  location              cff_pers|cff
  publisher             cff_pers|cff
  identifiers        cff_ref_lst|cff


dieghernan/cffR documentation built on April 17, 2025, 4:33 a.m.