-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
index.Rmd
60 lines (40 loc) · 2.71 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[![CRAN](http://www.r-pkg.org/badges/version/googleComputeEngineR)](http://cran.r-project.org/package=googleComputeEngineR)
[![Build Status](https://travis-ci.org/cloudyr/googleComputeEngineR.png?branch=master)](https://travis-ci.org/cloudyr/googleComputeEngineR)
[![codecov.io](https://codecov.io/github/cloudyr/googleComputeEngineR/coverage.svg?branch=master)](https://codecov.io/github/cloudyr/googleComputeEngineR?branch=master)
```{r, echo=FALSE}
knitr::include_graphics("articles/img/logo.png")
```
## Mission statement
`googleComputeEngineR` provides an R interface to the Google Cloud Compute Engine API, for launching virtual machines.
It looks to make the deployment of cloud resources for R as painless as possible, and includes some special templates to launch R-specific resources such as RStudio, Shiny, and OpenCPU with a few lines from your local R session.
## Quick startup - Creating an RStudio server VM
1. Configure a Google Cloud Project with billing (see [setup](articles/installation-and-authentication.html))
2. Download a service acount key JSON file
3. Put your default project, zone and JSON file location in your `.Renviron`
4. Run `library(googleComputeEngineR)` and auto-authenticate
5. Run `vm <- gce_vm(template = "rstudio", name = "rstudio-server", username = "mark", password = "mark1234")` (or other credentials) to start up an RStudio Server.
6. Wait for it to install, login via the returned URL.
### Setup video guide
A video guide to setup and launching an RStudio server has been kindly created by Donal Phipps and is [available at this link](https://www.youtube.com/watch?v=1oM0NZbRhSI).
```{r, echo=FALSE}
knitr::include_url("https://www.youtube.com/embed/1oM0NZbRhSI?rel=0")
```
## Thanks to:
* Scott Chamberlin for the [analogsea](https://github.com/sckott/analogsea) package for launching Digital Ocean VMs, which inspired the SSH connector functions for this one.
* Winston Chang for the [harbor](https://github.com/wch/harbor/) package where the docker functions come from. If `harbor` will be published to CRAN, it will become a dependency for this one.
* Henrik Bengtsson for help in integrating the fantastic [future](https://cran.r-project.org/web/packages/future/index.html) package that allows asynchronous R functions run in GCE clusters.
* Carl Boettiger and Dirk Eddelbuettel for [rocker](https://hub.docker.com/u/rocker/) that Docker containers some of the R templates used in this package.
## Install
CRAN version:
```r
install.packages("googleComputeEngineR")
```
Development version:
```r
if (!require("ghit")) {
install.packages("ghit")
}
ghit::install_github("cloudyr/googleComputeEngineR")
```
---
[![cloudyr project logo](http://i.imgur.com/JHS98Y7.png)](https://github.com/cloudyr)