eblondel/zen4R

Allow empty firstname in addContributor()

ThierryO opened this issue · 2 comments

This is allowed in addCreator() (see #26)

Maybe simple change

contributor <- list(name = paste(lastname, firstname, sep=", "), type = type)

into

contributor <- list(name = paste(c(lastname, firstname), collapse=", "), type = type) 

A contributor can be an entity (e.g. organisation which is the copyright holder).

@ThierryO i've pushed some code , let me know if it's ok

Thanks for the fast response. It works as expected.

I'm working on an upload function depending on a path containing a .zenodo.json. Maybe an idea to incorpate in zen4R?