analysis_plan_api: Create API analysis plan

Description Usage Arguments Value Examples

Description

Function to create a drake plan for an analysis using the API

Usage

1
2
analysis_plan_api(countries, url = "http://localhost:8000/",
  path = "model")

Arguments

countries

character vector of countries

Value

drake plan object

Examples

 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)

chapmandu2/gapminderpl documentation built on May 9, 2019, 8:42 a.m.