SciDrive.upload {SciServer} | R Documentation |
Uploads data or a local file into a SciDrive directory.
SciDrive.upload(path, data="", localFilePath="")
path |
desired file path in SciDrive (string). |
data |
data to be uploaded into SciDrive. If the 'localFilePath' parameter is set, then the local file will be uploaded instead. |
localFilePath |
path to the local file to be uploaded (string). |
Returns an object with the attributes of the uploaded file. Throws an exception if the user is not logged into SciServer (use Authentication.login
for that purpose). Throws an exception if the HTTP request to the SciDrive API returns an error.
Gerard Lemson, Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://www.scidrive.org/scidrive
http://www.github.com/sciserver/SciScript-R
## Not run: response = SciDrive.upload("/SciDrive/path/to/file.csv", "/local/path/to/file.csv") ## End(Not run)