ropensci / datapack

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

parseSystemMetadata incorrect when replicationAllowed is FALSE #61

Closed mbjones closed 7 years ago

mbjones commented 7 years ago

When a system metadata document sets replicationAllowed=FALSE, the method that parses it fails to detect this, and falls through to setting the slot to TRUE, which is the default. The expected result is to correctly set the replicationAllowed slot to FALSE.

mbjones commented 7 years ago

Fixed by changing the conditional to set the replicationPolicy block regardless of whether replicationAllowed is TRUE or FALSE.