synGet | R Documentation |
Gets a Synapse entity from the repository service.
synGet(entity, version=NULL, downloadFile=NULL, downloadLocation=NULL, followLink=NULL, ifcollision=NULL, limitSearch=NULL)
entity |
A Synapse ID, a Synapse Entity object, |
version |
optional named parameter: The specific version to get. |
downloadFile |
optional named parameter: Whether associated files(s) should be downloaded. |
downloadLocation |
optional named parameter: Directory where to download the Synapse File Entity. |
followLink |
optional named parameter: Whether the link returns the target Entity. |
ifcollision |
optional named parameter: Determines how to handle file collisions. |
limitSearch |
optional named parameter: a Synanpse ID used to limit the search in Synapse if entity is |
A new Synapse Entity object of the appropriate type
## Not run:
## download file
file <- synGet('syn1906479')
print(file$properties$name)
print(file$path)
## to access the file's metadata without downloading the file
file <- synGet("syn1906479", downloadFile = FALSE)
md5 <- file$get("md5")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.