...
Code Block | ||
---|---|---|
| ||
myFile <- synStore(File("/path/to/file", parentId="syn123"), used=[list('syn445865', 'syn1446185'])) |
#Lets store some code that was executed to generate another file and reference this code as being executed
...
Code Block | ||
---|---|---|
| ||
myCode <- synStore(File("/path/to/script.R", parentId="syn123")) myFile <- synStore(File("/path/to/file", parentId="syn123"), used=[list('syn445865', 'syn1446185']), executed=myCode) |
#To specify the name of the activity that was performed you can specify the name and description of the activity
...
Code Block | ||
---|---|---|
| ||
myFile <- synStore(File("/path/to/file", parentId="syn123"), used=[list('syn445865', 'syn1446185']), activityName="Manual editing of file", activityDescription="Corrected spelling of variable names") |
...
Code Block | ||
---|---|---|
| ||
myFile <- synStore(File("/path/to/file", parentId="syn123"), used=[list('syn445865', 'http://www.google.com']), activityName="Updated dbgap ids") |
...