View source: R/firebase_init.R
firebase_init | R Documentation |
Executes a few lines of JavaScript to initialize Firebase. This function should be
called in your Shiny UI immediately after firebase_dependencies
.
firebase_init(firebase_config)
firebase_config |
named
|
a character string of JavaScript code to initialize Firebase
## Not run:
my_config <- list(
apiKey = "your Firebase API key",
authDomain = "your Firebase auth domain",
projectId = "your Firebase Project ID"
)
firebase_init(my_config)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.