setPublicAccess: Add a Rule to the AccessPolicy to make the object publicly...

Description Usage Arguments Value See Also Examples

Description

To be called prior to creating the object in DataONE. When called before creating the object, adds a rule to the access policy that makes this object publicly readable. If called after creation, it will only change the system metadata locally, and will not have any effect on remotely uploaded copies of the DataObject.

Usage

1
2
3
4
setPublicAccess(x, ...)

## S4 method for signature 'DataObject'
setPublicAccess(x)

Arguments

x

DataObject

...

(not yet used)

Value

DataObject with modified access rules

See Also

DataObject-class

Examples

1
2
3
4
data <- charToRaw("1,2,3\n4,5,6\n")
do <- new("DataObject", "id1", dataobj=data, "text/csv", 
  "uid=jones,DC=example,DC=com", "urn:node:KNB")
do <- setPublicAccess(do)


Search within the datapack package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.