项目作者: JohnCoene

项目描述 :
Authenticate Shiny Users with Firebase
高级语言: R
项目地址: git://github.com/JohnCoene/firebase.git
创建时间: 2020-03-15T17:06:01Z
项目社区:https://github.com/JohnCoene/firebase

开源协议:GNU Affero General Public License v3.0

下载






Google Firebase for shiny,
built with packer.


Lifecycle: stable
R-CMD-check
packer


Website | Demo | Get Started

Authentication Methods

Currently the following methods from Google Firebase are available in the package:

  • Email & Password
  • Email Link
  • Google
  • Github
  • Facebook
  • Twitter
  • Microsoft
  • Yahoo!
  • Phone

Example

An application that provides authentication could look like this.

  1. library(shiny)
  2. library(firebase)
  3. ui <- fluidPage(
  4. useFirebase(), # import dependencies,
  5. firebaseUIContainer()
  6. )
  7. server <- function(input, output){
  8. f <- FirebaseUI$
  9. new()$ # instantiate
  10. set_providers( # define providers
  11. email = TRUE,
  12. google = TRUE
  13. )$
  14. launch() # launch
  15. }
  16. shinyApp(ui, server)

Install

Install the stable version from CRAN:

  1. install.packages("firebase")

Install the development from Github using remotes:

  1. # install.packages("remotes")
  2. remotes::install_github("JohnCoene/firebase")

Get the current bleeding edge refactor with webpack
with packer
to improve performances and use firebase JavaScript version 9.
It also includes two new classes Storage and Analytics.

  1. remotes::install_github("JohnCoene/firebase@packer")

Below are similar projects:

Code of Conduct

Please note that the firebase project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.