View source: R/droplet_execute.R
droplet_execute | R Documentation |
Execute R code on a droplet.
droplet_execute(droplet, code, verbose = TRUE)
droplet |
A droplet, or object that can be coerced to a droplet
by |
code |
Code to execute on a droplet. |
verbose |
(logical) Print messages. Default: |
Assumes that the droplet has R installed.
## Not run: d <- droplet_create() %>% ubuntu_add_swap() %>% droplet_ssh("apt-get update") %>% ubuntu_install_r() results <- d %>% droplet_execute({ x <- letters numbers <- runif(1000) }) results$x results$numbers droplet_delete(d) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.