## Not run:
# ## execute code in a local file
# resultEntity <- synapseExecute(
# executable="/path/to/file.R",
# args=list(x=1, y="syn102987"),
# resultParentId="syn123456",
# codeParentId="syn987654",
# resultEntityProperties=list(a="foo", b="bar),
# resultEntityName="exampleOutput")
#
# ## execute code in Github
# resultEntity <- synapseExecute(
# executable=list(repoName="/githubUser/ProjectRepo", sourceFile="path/to/file.R"),
# args=list(x=1, y="syn102987"),
# resultParentId="syn123456",
# codeParentId="syn987654",
# resultEntityProperties=list(a="foo", b="bar),
# resultEntityName="exampleOutput")
# ## End(Not run)
Run the code above in your browser using DataLab