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:
install.packages("CRediTas", repos = "https://ropensci.r-universe.dev")
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)
<- template_create(authors = c("Friedrich Ratzel",
cras_table "Pau Vidal de la Blache",
"Élisée Reclus"))
::kable(cras_table) knitr
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:
fix(cras_table)
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:
<- template_create(authors = c("Danaerys Targaryen", "Kingslayer", "John Snow"),
cras_got roles = c("Free slaves", "Kill white walkers", "Ride dragons"))
# add contribution roles
-2, -1] <- 1
cras_got[
::kable(cras_got) knitr
Authors | Free slaves | Kill white walkers | Ride dragons |
---|---|---|---|
Danaerys Targaryen | 1 | 1 | 1 |
Kingslayer | 0 | 0 | 0 |
John Snow | 1 | 1 | 1 |
If you wrote the template to a file, then you can read it back to R as follows:
<- template_read(path_to_your_csv_file) cras_table