tests/testthat/_snaps/get-orcids.md

get_orcids() returns authors' ORCID

Code
  aut$get_orcids()
Output
  Zip Zap[\hspace{3pt}![](orcid.pdf){height=16px}\hspace{3pt}](https://orcid.org/0000-0000-0000-0001)<https://orcid.org/0000-0000-0000-0001>
  Ric Rac[\hspace{3pt}![](orcid.pdf){height=16px}\hspace{3pt}](https://orcid.org/0000-0000-0000-0002)<https://orcid.org/0000-0000-0000-0002>
Code
  aut$get_orcids(sep = " - ")
Output
  Zip Zap - [\hspace{3pt}![](orcid.pdf){height=16px}\hspace{3pt}](https://orcid.org/0000-0000-0000-0001)<https://orcid.org/0000-0000-0000-0001>
  Ric Rac - [\hspace{3pt}![](orcid.pdf){height=16px}\hspace{3pt}](https://orcid.org/0000-0000-0000-0002)<https://orcid.org/0000-0000-0000-0002>
Code
  aut$get_orcids(icon = FALSE)
Output
  Zip Zap<https://orcid.org/0000-0000-0000-0001>
  Ric Rac<https://orcid.org/0000-0000-0000-0002>
Code
  aut$get_orcids(icon = FALSE, compact = TRUE)
Output
  Zip Zap[0000-0000-0000-0001](https://orcid.org/0000-0000-0000-0001)
  Ric Rac[0000-0000-0000-0002](https://orcid.org/0000-0000-0000-0002)

get_orcids() gives meaningful error messages

Code
  (expect_error(aut$get_orcids(compact = 1)))
Output
  <error/rlang_error>
  Error:
  ! `compact` must be `TRUE` or `FALSE`.
Code
  (expect_error(aut$get_orcids(icon = 1)))
Output
  <error/rlang_error>
  Error:
  ! `icon` must be `TRUE` or `FALSE`.
Code
  (expect_error(aut$get_orcids(sep = 1)))
Output
  <error/rlang_error>
  Error:
  ! `sep` must be a character string.


Try the plume package in your browser

Any scripts or data that you put into this service are public.

plume documentation built on Sept. 12, 2024, 7:31 a.m.