upload: The firebase data upload function:

Description Usage Arguments Value Author(s) Examples

View source: R/index.R

Description

The function allows to upload data objects, such as variables,lists and data.frames

Usage

1
upload(x, projectURL, directory = "main", token = "none")

Arguments

x

A data.frame or data.table object

projectURL

The Firebase project URL string

directory

The optimal Firebase subdirectory string

token

The user access token that can be retrieved with the auth() function. Required when if the database rules specify the need for user authentications. string

Value

returns http request answer which includes the random key.

Author(s)

Robin Kohze

Examples

1
2
3
4
## Not run: 
upload(x = mtcars, projectURL = "https://firedata-b0e54.firebaseio.com/", directory = "main")

## End(Not run)

Kohze/fireData documentation built on Oct. 19, 2020, 8:19 a.m.