Description Usage Arguments Value Examples
Launch an Ubuntu 14.04 (Trusty) machine on digitalocean with ggmap installed on and store it as a snapshot.
1 2 | do_ggmap_image(name_snapshot = "analogsea-ext-ggmap-holodeck",
name = "analogsea-ext-ggmap", sleep = 1)
|
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. |
the image snapshot you created
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.