UploadData: Upload a data source.

View source: R/UploadData.R

UploadDataR Documentation

Upload a data source.

Description

Takes either a file path or a dataframe and returns output for POST that specifies the file object via form upload. This function is meant to facilitate uploading CSV data sources into DataRobot, such as through SetupProject.

Usage

UploadData(dataSource, fileName = NULL)

Arguments

dataSource

character. The file to upload.

fileName

character. The name of the file after it is uploaded. If not set, defaults to the name of the uploaded file.

Value

An httr object specifying the form upload content of the file path.

See Also

SetupProject


datarobot documentation built on May 29, 2024, 4:36 a.m.