debian: Helpers for managing a debian droplets.

Description Usage Arguments Examples

Description

Helpers for managing a debian droplets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
debian_add_swap(droplet)

debian_install_r(droplet)

debian_install_rstudio(
  droplet,
  user = "rstudio",
  password = "server",
  version = "0.99.484"
)

debian_install_shiny(droplet, version = "1.4.0.756")

debian_apt_get_update(droplet)

debian_apt_get_install(droplet, ...)

install_r_package(droplet, package, repo = "http://cran.rstudio.com")

Arguments

droplet

A droplet, or object that can be coerced to a droplet by as.droplet.

user

Default username for Rstudio.

password

Default password for Rstudio.

version

Version of rstudio to install.

...

Arguments to apt-get install.

package

Name of R package to install.

repo

CRAN mirror to use.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
d <- droplet_create()
d %>% debian_add_swap()
d %>% debian_apt_get_update()

d %>% debian_install_r()
d %>% debian_install_rstudio()

# Install libcurl, then build RCurl from source
d %>% debian_apt_get_install("libcurl4-openssl-dev")
d %>% install_r_package("RCurl")
droplet_delete(d)

## End(Not run)

analogsea documentation built on Jan. 30, 2020, 5:08 p.m.