CasJobs.uploadCSVDataToTable {SciServer}R Documentation

Upload CSV string table into a DB table.

Description

Uploads a table in CSV string format into a CasJobs database table.

Usage

CasJobs.uploadCSVDataToTable(csv, tableName, context="MyDB")

Arguments

csv

CSV string representing a table (string)

tableName

Name of table (string)

context

Database context (string)

Value

Returns TRUE if the table 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)

Gerard Lemson, 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.uploadCSVFileToTable.

Examples

response = CasJobs.uploadCSVDataToTable(csv="col1,col2\n1,2", tableName="MyNewTable", context="MyDB")

[Package SciServer version 2.0.0 Index]