# NOT RUN {
# }
# NOT RUN {
library(googleComputeEngineR)
## make instance using R-base
vm <- gce_vm_template("r-base", predefined_type = "f1-micro", name = "rbase")
## run an R function on the instance within the R-base docker image
docker_run(vm, "rocker/r-base", c("Rscript", "-e", "1+1"), user = "mark")
#> [1] 2
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab