removeMember | R Documentation |
Given the identifier of a DataObject in a DataPackage, delete the DataObject from the DataPackage.
removeMember(x, ...) ## S4 method for signature 'DataPackage' removeMember(x, do, removeRelationships = FALSE)
x |
a DataPackage object |
... |
(Not yet used) |
do |
The package member to remove, either as a |
removeRelationships |
A |
The removeMember
method removes the specified DataObject from the DataPackage. In
addition, any package relationships that included the DataObject are removed.
DataPackage-class
dp <- new("DataPackage") data <- charToRaw("1,2,3\n4,5,6") do <- new("DataObject", id="myNewId", dataobj=data, format="text/csv", user="jsmith") dp <- addMember(dp, do) # Remove the package member and any provenance relationships that reference it. removeMember(dp, "myNewId", removeRelationships=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.