Description Usage Arguments Value Examples
Function to create a drake plan for an analysis using the API
1 2 | analysis_plan_api(countries, url = "http://localhost:8000/",
path = "model")
|
countries |
character vector of countries |
drake plan object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
library(gapminder)
library(dplyr)
library(drake)
# note will have to have instantiated the API in another R process eg:
# gapminder_api(8000)
my_plan <- gapminder %>%
distinct(country) %>%
unlist() %>% unname() %>%
as.character() %>%
analysis_plan_api()
make(my_plan)
readd(results)
readd(plot)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.