inbo / checklist

An R package for checking R packages and R code
https://inbo.github.io/checklist
GNU General Public License v3.0
16 stars 2 forks source link

Multiple affiliations per author #123

Closed wlangera closed 2 months ago

wlangera commented 7 months ago

Currently, it is not possible to have more than one affiliation per author in the README file to make the citation file and zenodo JSON. Here in case of seven authors:

checklist::update_citation()
#>Error in data.frame(id = seq_along(authors), given = gsub(".*,\\s*(.*)",  : arguments imply differing number of rows: 7, 8

So you get a row too much because there are seven authors and eight affiliations since one author has two affiliations. It can not make a dataframe which requires an equal number of elements in each column.

I think this can be fixed relatively easily, but therefore we should find out how this needs to be translated in the zenodo JSON file. It is definitely possible to add multiple affiliations to an author in zenodo manually.