do_ggmap_image: Launch a machine on digitalocean with ggmap installed on and...

Description Usage Arguments Value Examples

Description

Launch an Ubuntu 14.04 (Trusty) machine on digitalocean with ggmap installed on and store it as a snapshot.

Usage

1
2
do_ggmap_image(name_snapshot = "analogsea-ext-ggmap-holodeck",
  name = "analogsea-ext-ggmap", sleep = 1)

Arguments

name_snapshot

the name of the digitalocean snapshot to create. Defaults to 'analogsea-ext-ggmap-holodeck'.

name

the name of the digitalocean image which will be created to take a snapshot. Defaults to 'analogsea-ext-ggmap'. Will be deleted at the end.

sleep

a number of seconds to sleep after the droplet has been created before we ssh to it. Defaults to 1 second.

Value

the image snapshot you created

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
mymachine <- do_ggmap_image(sleep = 10)
mymachine

## launch a new machine from the image
anothermachine <- droplet_create(image = mymachine$id)

## clean up
droplet_delete(anothermachine)
image_delete(mymachine)

## End(Not run)

bnosac/analogsea.ext documentation built on May 12, 2019, 11:27 p.m.