CasJobs.uploadCSVFileToTable: Upload CSV file into DB table.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/CasJobs.r

Description

Uploads a CSV file to a database table in CasJobs.

Usage

1
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

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

sciserver/SciScript-R documentation built on May 29, 2019, 3:45 p.m.