ropensci / EML

Ecological Metadata Language interface for R: synthesis and integration of heterogenous data
https://docs.ropensci.org/EML
Other
97 stars 33 forks source link

`set_responsibleParty()`: allow to create organization parties #345

Closed peterdesmet closed 2 years ago

peterdesmet commented 2 years ago

According the documentation, it should be possible to create a party that is not a person:

organizationName: if party is an organization instead of an individual, name for the org

However, when set_responsibleParty() is not provided a givenName argument, it returns an error:

library(EML)
  set_responsibleParty(organizationName = "INBO", onlineUrl = "https://inbo.be")
#> Error in UseMethod("set_responsibleParty", givenName): no applicable method for 'set_responsibleParty' applied to an object of class "NULL"

Created on 2022-06-03 by the reprex package (v2.0.1)

amoeba commented 2 years ago

Thanks for the report @peterdesmet, I agree this needs fixing. I've sent in a PR which either I or another on the team will merge soon to address this. I'll close this once that's merged.