Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

localPath:  directory on machine which is running the R session

side effects

Checks that Version in Code object matches repository, and revises the Code object if not.Checks that local files are in sync with repository and, if not, prints the svn command needed to sync. [Alt:  Could do svn 'checkout' or 'update' on user's behalf.]

 Updates the Code object (to be returned) with the current repository version.

returns

Code object

loadEntity(codeObj)

...

If (codeId!=null)

  • 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.] 
  • Check that Version in R Code object is up-to-date with repository, and revises the R Code object if not. 
  • Check that the Version in Synapse Code object is up-to-date, and revises it if not.
  • Get current Step. 
  • Adds codeId, revision reference to Synapse Code object into Step.

'sources' code into memory

(i.e. if 'codeObj' is just a local variable, this is a utility to source a collection of files.)

returns

nothing codeObj

deleteEntity(codeId)

parameters

...