Learn R Programming

polished (version 0.8.1)

firebase_init: Initialize Firebase

Description

Executes a few lines of JavaScript to initialize Firebase. This function should be called in your Shiny UI immediately after firebase_dependencies.

Usage

firebase_init(firebase_config)

Value

a character string of JavaScript code to initialize Firebase

Arguments

firebase_config

named list of firebase configuration values. Required values are:

  • apiKey

  • authDomain

  • projectId

Examples

Run this code


if (FALSE) {
my_config <- list(
  apiKey = "your Firebase API key",
  authDomain = "your Firebase auth domain",
  projectId = "your Firebase Project ID"
)

firebase_init(my_config)
}

Run the code above in your browser using DataLab