The goal of CRediTas is to facilitate the tedious job of creating CRediT authors statements for scientific publications.
You can install the development version of CRediTas from r-universe with:
Or you can install de long term release version from CRAN as usual:
The workflow is meant to work with three basic functions. First, we
create a template table. It can be created as a data.frame
and being populated in R.
library(CRediTas)
cras_table <- template_create(authors = c("Friedrich Ratzel",
"Pau Vidal de la Blache",
"Élisée Reclus"))
knitr::kable(cras_table)
Authors | Conceptualization | Methodology | Software | Validation | Formal Analysis | Investigation | Resources | Data curation | Writing - original draft | Writing - review & editing | Visualization | Supervision | Project administration | Funding acquisition |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Friedrich Ratzel | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Pau Vidal de la Blache | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Élisée Reclus | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
As you can see, the table is empty. So you must provide the
information of who did what. To do this, you can use the
fix
function to edit directly in R:
Alternatively, you can write the template as a csv file and then populate it in your preferred csv editor.
template_create(authors = c("Friedrich Ratzel",
"Pau Vidal de la Blache",
"Élisée Reclus"),
file = path_to_your_csv_file)
Additionally, you can also define the roles to be included in the
template. If roles
is no specified, the roles recommended
by the CRediT system are all included:
cras_got <- template_create(authors = c("Danaerys Targaryen", "Kingslayer", "John Snow"),
roles = c("Free slaves", "Kill white walkers", "Ride dragons"))
# add contribution roles
cras_got[-2, -1] <- 1
knitr::kable(cras_got)
Authors | Free slaves | Kill white walkers | Ride dragons |
---|---|---|---|
Danaerys Targaryen | 1 | 1 | 1 |
Kingslayer | 0 | 0 | 0 |
John Snow | 1 | 1 | 1 |