datapack icon indicating copy to clipboard operation
datapack copied to clipboard

make sure `targetPath` is serialized from resource maps into DataObject class objects

Open jeanetteclark opened this issue 2 years ago • 0 comments

library(dataone)
library(datapack)

d1c <- D1Client("PROD", "urn:node:ARCTIC")

dp <- getDataPackage(d1c, "resource_map_doi:10.18739/A2NK36626")

Observe that targetPath is NA

str(dp@objects$`urn:uuid:6f70146e-82db-460d-98c6-b9fbcf3751b0`)

Even though the relationship exists in the resource map

dp@relations

jeanetteclark avatar Apr 20 '23 18:04 jeanetteclark