CasJobs.uploadCSVFileToTable {SciServer} | R Documentation |
Uploads a CSV file to a database table in CasJobs.
CasJobs.uploadCSVFileToTable(filePath, tableName, context="MyDB")
filePath |
Path to CSV file (string) |
tableName |
Name of CasJobs table (string) |
context |
Database context (string) |
Returns TRUE if the file was uploaded successfully. Throws an exception if the user is not logged into SciServer (use Authentication.login
for that purpose). Throws an exception if the CSV file could not be found. Throws an exception if the HTTP request to the CasJobs API returns an error.
Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>
http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R
CasJobs.uploadDataFrameToTable
, CasJobs.uploadCSVDataToTable
.
response = CasJobs.uploadCSVFileToTable(filePath="/path/to/file.csv",tableName="MyNewTable", context="MyDB")