Code
# Multiple given/family names
person_desc(c("First", "Second"), c("Family1", "Family2"))
Output
[1] "First Second Family1 Family2 \\email{h@w.com}"
Code
# Multiple roles
person_desc(role = "ctb")
Output
[1] "H W \\email{h@w.com} [contributor]"
Code
# ORCID comments
person_desc(comment = c(ORCID = "1234"))
Output
[1] "H W \\email{h@w.com} (\\href{https://orcid.org/1234}{ORCID})"
Code
person_desc(comment = c(ORCID = "https://orcid.org/1234"))
Output
[1] "H W \\email{h@w.com} (\\href{https://orcid.org/1234}{ORCID})"
Code
person_desc(comment = c(ORCID = "1234", "extra"))
Output
[1] "H W \\email{h@w.com} (\\href{https://orcid.org/1234}{ORCID}) (extra)"
Code
package_authors("1 + ")
Message
x Failed to evaluate Authors@R.
Caused by error in `parse()`:
! <text>:2:0: unexpected end of input
1: 1 +
^
Output
NULL
Code
package_authors("stop('Uhoh')")
Message
x Failed to evaluate Authors@R.
Caused by error:
! Uhoh
Output
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.