CasJobs.uploadCSVFileToTable {SciServer}R Documentation

Upload CSV file into DB table.

Description

Uploads a CSV file to a database table in CasJobs.

Usage

CasJobs.uploadCSVFileToTable(filePath, tableName, context="MyDB")

Arguments

filePath

Path to CSV file (string)

tableName

Name of CasJobs table (string)

context

Database context (string)

Value

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.

Author(s)

Manuchehr Taghizadeh-Popp
Maintainer: Manuchehr Taghizadeh-Popp <mtaghiza@jhu.edu>

References

http://www.sciserver.org
http://skyserver.sdss.org/casjobs
http://www.github.com/sciserver/SciScript-R

See Also

CasJobs.uploadDataFrameToTable, CasJobs.uploadCSVDataToTable.

Examples

response = CasJobs.uploadCSVFileToTable(filePath="/path/to/file.csv",tableName="MyNewTable", context="MyDB")

[Package SciServer version 2.0.0 Index]