searchConsoleR
googleAnalyticsR
googleAuthR
-> gargle
googleComputeEngineR
(cloudyr)googleCloudStorageR
(cloudyr)bigQueryR
(cloudyr)googleLanguageR
(rOpenSci)googleCloudRunner
(New!)Slack: #googleAuthRverse
Docker - a container system for building and sharing applications
Cloud - computing delivered via the internet, not locally
Serverless - cloud services that often use containers to host applications without configuring servers
Flexible No need to ask IT to install R places, use docker run
; across cloud platforms; ascendent tech
Version controlled No worries new package releases will break code
Scalable Run multiple Docker containers at once, fits into event-driven, stateless serverless future
Docker levels the playing ground between languages in the cloud
rocker/r-ver
rocker/rstudio
rocker/tidyverse
rocker/shiny
rocker/ml-gpu
FROM rocker/tidyverse:3.6.0
# install R package dependencies
RUN apt-get update && apt-get install -y \
libssl-dev
## Install packages from CRAN
RUN install2.r --error \
-r 'http://cran.rstudio.com' \
googleAnalyticsR \
searchConsoleR \
googleCloudStorageR \
bigQueryR \
## install Github packages
&& installGithub.r MarkEdmondson1234/youtubeAnalyticsR
As easy as possible enabling of R use cases in the Cloud
library(googleComputeEngineR)
gce_vm(template = "rstudio", name = "my-rstudio-server",
username = "mark", password = "r2020",
predefined_type = "n1-highmem-2")
Docker image originally for GCE, deployed to Kubernetes:
kubectl run shiny1 \
--image gcr.io/gcer-public/shiny-googleauthrdemo:prod \
--port 3838
kubectl expose deployment shiny1 \
--target-port=3838 --type=NodePort
https://code.markedmondson.me/r-on-kubernetes-serverless-shiny-r-apis-and-scheduled-scripts/
Cloud Build (like the demo earlier)
Cloud Run (like the demo earlier)
Same R/Docker container, many options:
Ability to share R code with non-R users