DataONEorg / rdataone

R package for reading and writing data at DataONE data repositories
http://doi.org/10.5063/F1M61H5X
36 stars 19 forks source link

GetSystemMetadata method doesn't get replica information #302

Closed taojing2002 closed 4 months ago

taojing2002 commented 4 months ago

I used a piece of R code to get system metadata of an object which has the replicas. The system metadata can be see from: https://mn-sandbox-ucsb-1.test.dataone.org/knb/d1/mn/v2/meta/testReplicateJsonLD.1711738610440

pid <- "testReplicateJsonLD.1711738610440"
mn <- MNode("https://mn-sandbox-ucsb-1.test.dataone.org/knb/d1/mn/v2")
user <- "http://orcid.org/0000-0002-8916-564X"
sysmeta <- getSystemMetadata(mn, pid)

However, the replica section is missing from R even though it got the replication policy part:

Screen Shot 2024-04-04 at 10 24 00 AM Screen Shot 2024-04-04 at 10 24 21 AM
taojing2002 commented 4 months ago

Move this ticket to: https://github.com/ropensci/datapack/issues/140