File | R Documentation |
Represents a file in Synapse.
When a File object is stored, the associated local file or its URL will be stored in Synapse. A File must have a path (or URL) and a parent.
File(path=NULL, parent=NULL, synapseStore=TRUE, properties=NULL, annotations=NULL, name=NULL, contentType=NULL, dataFileHandleId=NULL)
path |
Location to be represented by this File |
parent |
Project or Folder where this File is stored |
synapseStore |
Whether the File should be uploaded or if only the path should be stored when synStore |
properties |
A map of Synapse properties |
annotations |
A map of user defined annotations |
name |
optional named parameter: Name of the file in Synapse, not to be confused with the name within the path |
contentType |
optional named parameter: Manually specify Content-type header, for example "application/png" or "application/json; charset=UTF-8" |
dataFileHandleId |
optional named parameter: Defining an existing dataFileHandleId will use the existing dataFileHandleId |
An object of type File
## Not run:
file<-File('/path/to/file/data.xyz', parent=folder)
file<-synStore(file)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.