set_public_read_all_versions | R Documentation |
Set public READ access on all versions of PIDs in data package.
set_public_read_all_versions(mn, resource_map_pid)
mn |
(MNode) The Member Node to query. |
resource_map_pid |
(character) The resource map identifier (PID). |
## Not run:
cn_staging <- CNode('STAGING')
adc_test <- getMNode(cn_staging,'urn:node:mnTestARCTIC')
# Create a dummy package then create another version with 'publish_update()'
pkg <- create_dummy_package(adc_test)
remove_public_read(mn, unlist(pkg))
pkg_v2 <- publish_update(adc_test, pkg$metadata, pkg$resource_map, pkg$data, public = FALSE)
# Set public read on all versions
set_public_read_all_versions(adc_test, pkg$resource_map)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.