addObject: Manipulate Objects held by an Entity

Description Usage Arguments Details Value Author(s) See Also

Description

Functions for manipulating R objects held by an entity.

Usage

1
2
3
4
addObject(owner, object, name, unlist)
deleteObject(owner, which)
getObject(owner, which)
renameObject(owner, which, name)

Arguments

owner

The entity to be modified

object

The object to be added or renamed

name

optional argument specifying the to be given to the object. Defaults to the name of the object when passed as an argument.

unlist

boolean indicating whether list objects should be added as a single object (unlist = TRUE) or as one object for each named element (unlist=FALSE)

which

the name of the object to be deleted or returned.

Details

It is important to note that the objects held by an entity are stored in an environment. In R environments are passed by reference. So, if you make multiple copies of an entity, any modifications made to the objects held by one copy of the entity will be propagated to all copies of that entity. use copyEntity to prevent this.

Another implication of using environments is that it is not technically necessary to catch the return value from these functions. However, it may help the clarity of your code to do so.

Value

The modified owner (invisibly)

Author(s)

Matt Furia

See Also

addFile copyEntity


Sage-Bionetworks/rSynapseClientRewrite documentation built on May 9, 2019, 7:06 p.m.