This metadata document has two attributes that are enumeratedDomain, with each codeDefinition list having one code/definition pair. get_attributes doesn't know how to handle this because it tries to apply this
factors <- lapply(factors$codeDefinition, function(x) { as.data.frame(x, stringsAsFactors = FALSE) })
over the list of code = ... and definition = ... as opposed to the list of codeDefinition elements. I think this is related to the auto_unbox="TRUE" option in emld (discussed on slack).
Heres a reprex with an ugly solution to get around the problem:
This metadata document has two attributes that are
enumeratedDomain
, with eachcodeDefinition
list having one code/definition pair.get_attributes
doesn't know how to handle this because it tries to apply thisfactors <- lapply(factors$codeDefinition, function(x) { as.data.frame(x, stringsAsFactors = FALSE) })
over the list ofcode = ...
anddefinition = ...
as opposed to the list ofcodeDefinition
elements. I think this is related to theauto_unbox="TRUE"
option inemld
(discussed on slack).Heres a reprex with an ugly solution to get around the problem:
Its a little bit of an edge case (doesn't make a ton of sense to only have one
codeDefinition
, IMO) but I thought I would report anyway