This library is available on Github, so we
recommend that you use the devtools package to install it.
Usage
To list available commands, run
Important: If you are running the code in R Studio, it might require a restart so that its help index is updated
and the above command works.
The client is implemented as an RC class. To work with it, create an instance of the client.
The only required argument to create it is a valid Storage API token.
Example — Create a Table and Import Data
To create a new table in Storage, use the saveTable function. Provide the name of an existing bucket,
the name of the new table and a CSV file with the table’s contents.
To create the new-table table in the in.c-main bucket, use
The above command will import the contents of the myDataFrame variable into the newly created table. It will
also mark the id column as the primary key.
Example — Export Data
If you want to export a table from Storage and import it into R, use the importTable function. Provide
the ID (bucketName.tableName) of an existing table.
To export data from the old-table table in the in.c-main bucket, use
The above command will export the table from Storage and save it in the data variable. The output is
a data.table object compatible with a data.frame.