...
loadEntity(codeId, localPath)
parameters
codeIdcodeId: id of metadata object in Synapse
localPath: directory on machine which is running the R session
repoSync:
side effects
Checks that Version in Code object is up-to-date with repository, and revises the Code object if not.
Checks that local files are in sync with repository, and throws exception if not (printing the svn command needed to sync). [Alt: Could do svn 'checkout' or 'update' on user's behalf.]
...
'sources' code into memory
returns
Code object
deleteEntity(codeId)
parameters
codeId: ID of the object in Synapse
...
Delete metadata from Synapse.
Delete from the code repository. [Alt: Print out delete command that user should execute.[Alt: Delete from the code repository.]
returns
Nothing.
TODO: What if not all steps are successful?
TODO: Should we delete from the local disk? From the R session?
...