Nothing
#' @title CRediT roles
#' @description Helper function returning the 14 contributor roles of the
#' `r link("crt")` (CRediT). This function is the default argument of the
#' `roles` and `role_cols` parameters in plume classes and [`plm_template()`],
#' respectively.
#' @param oxford_spelling Should the suffix -ize/-ization be used?
#' @returns A named vector.
#' @examples
#' credit_roles()
#' @export
credit_roles <- function(oxford_spelling = TRUE) {
check_bool(oxford_spelling)
out <- unlist(list_fetch(.names, "crt"))
if (oxford_spelling) {
return(out)
}
ise(out)
}
ise <- function(x) {
pattern <- "(?<=i)z(?=ation)"
names(x) <- str_replace(names(x), pattern, "s")
x[] <- str_replace(x, pattern, "s")
x
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.