Cloud Firestore API R library

Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development.

Installation

# Install from the development version from GitHub
# install.packages("devtools")
devtools::install_github("robonomist/googleFirestore")

Features

  • Auto generated R functions for every method and object in the API
  • Passes CRAN checks in skeleton form
  • Auto-creates R package files via usethis
  • Auto-documentation of function arguments
  • Type-checking of passed objects
  • Ability to quickly add new features of the API as they are published.

This is an R package autogenerated via googleAuthR’s Discovery API builder. The Google Documentation for this API is here.

Authentication

Set the appropriate Google API scopes:

library(googleAuthR)
library(googleFirestore)
options(googleAuthR.scopes.selected = c('https://www.googleapis.com/auth/datastore', 'https://www.googleapis.com/auth/cloud-platform'))

gar_auth()

See the documentation for the package starting at ?googleFirestore ## Useage The intention is for these auto-generated packages to be used as a basis for proper R packages suitable for CRAN. Fork this package, and then use the generated functions and objects to make what you need. Things you may want to do are: * Create parsing functions to make the API responses into more user-friendly forms * Create wrapper functions and objects around the API calls into more user-friendly forms * Create documentation, vignette’s and examples