| Line 153... |
Line 153... |
| 153 |
In the old scheme, person objects were used for single persons, and a
|
153 |
In the old scheme, person objects were used for single persons, and a
|
| 154 |
separate \code{"personList"} class with corresponding creator
|
154 |
separate \code{"personList"} class with corresponding creator
|
| 155 |
\code{personList()} for collections of these. The new scheme employs
|
155 |
\code{personList()} for collections of these. The new scheme employs
|
| 156 |
a single class for information about an arbitrary positive number of
|
156 |
a single class for information about an arbitrary positive number of
|
| 157 |
persons, eliminating the need for the \code{personList} mechanism.
|
157 |
persons, eliminating the need for the \code{personList} mechanism.
|
| - |
|
158 |
|
| - |
|
159 |
The \code{comment} field can be used for \dQuote{arbitrary} additional
|
| - |
|
160 |
information about persons. Elements named \code{"ORCID"} will be
|
| - |
|
161 |
taken to give ORCID identifiers (see \url{https://orcid.org/} for more
|
| - |
|
162 |
information), and be displayed as the corresponding URIs by the
|
| - |
|
163 |
\code{print()} and \code{format()} methods (see \bold{Examples}
|
| - |
|
164 |
below).
|
| - |
|
165 |
|
| 158 |
}
|
166 |
}
|
| 159 |
\seealso{
|
167 |
\seealso{
|
| 160 |
\code{\link{citation}}
|
168 |
\code{\link{citation}}
|
| 161 |
}
|
169 |
}
|
| 162 |
\keyword{misc}
|
170 |
\keyword{misc}
|
| Line 180... |
Line 188... |
| 180 |
## Specifying package authors, example from "boot":
|
188 |
## Specifying package authors, example from "boot":
|
| 181 |
## AC is the first author [aut] who wrote the S original.
|
189 |
## AC is the first author [aut] who wrote the S original.
|
| 182 |
## BR is the second author [aut], who translated the code to R [trl],
|
190 |
## BR is the second author [aut], who translated the code to R [trl],
|
| 183 |
## and maintains the package [cre].
|
191 |
## and maintains the package [cre].
|
| 184 |
b <- c(person("Angelo", "Canty", role = "aut", comment =
|
192 |
b <- c(person("Angelo", "Canty", role = "aut", comment =
|
| 185 |
"S original, http://statwww.epfl.ch/davison/BMA/library.html"),
|
193 |
"S original, <http://statwww.epfl.ch/davison/BMA/library.html>"),
|
| 186 |
person(c("Brian", "D."), "Ripley", role = c("aut", "trl", "cre"),
|
194 |
person(c("Brian", "D."), "Ripley", role = c("aut", "trl", "cre"),
|
| 187 |
comment = "R port", email = "ripley@stats.ox.ac.uk")
|
195 |
comment = "R port", email = "ripley@stats.ox.ac.uk")
|
| 188 |
)
|
196 |
)
|
| 189 |
b
|
197 |
b
|
| 190 |
|
198 |
|
| Line 194... |
Line 202... |
| 194 |
braces = list(family = c("", ","), role = c("(Role(s): ", ")")))
|
202 |
braces = list(family = c("", ","), role = c("(Role(s): ", ")")))
|
| 195 |
|
203 |
|
| 196 |
## Conversion to BibTeX author field.
|
204 |
## Conversion to BibTeX author field.
|
| 197 |
paste(format(b, include = c("given", "family")), collapse = " and ")
|
205 |
paste(format(b, include = c("given", "family")), collapse = " and ")
|
| 198 |
toBibtex(b)
|
206 |
toBibtex(b)
|
| - |
|
207 |
|
| - |
|
208 |
## ORCID identifiers.
|
| - |
|
209 |
(p3 <- person("Achim", "Zeileis",
|
| - |
|
210 |
comment = c(ORCID = "0000-0003-0918-3766")))
|
| 199 |
}
|
211 |
}
|