ropensci / datapack

An R package to handle data packages
https://docs.ropensci.org/datapack
44 stars 9 forks source link

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

Open jeanetteclark opened 1 year ago

jeanetteclark commented 1 year ago
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