CasJobs.uploadCSVDataToTable: Upload CSV string table into a DB table.

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

View source: R/CasJobs.r

Description

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

Usage

1
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

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

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