download: Data conversion function

Description Usage Arguments Value Examples

View source: R/index.R

Description

The internal data conversion function to bring data in the right json format. In case the uploaded file is a s4 class object, the object is converted to a binary s4 object.

Usage

1
2
download(projectURL, fileName, secretKey = "none", token = "none",
  isClass = FALSE)

Arguments

projectURL

The firebase database url. string

fileName

The filename or subdirectory. string

secretKey

The optional database secret key for admin access. 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

isClass

In case a s4 class object is downloaded, fireData expects a isClass=TRUE

Value

returns optionally reformatted data.

Examples

1
2
3
4
## Not run: 
download(projectURL = "https://firedata-b0e54.firebaseio.com/", fileName = "main/-KxwWNTVdplXFRZwGMkH")

## End(Not run)

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