api: Build and start the API

Description Usage Arguments Value

View source: R/api.R

Description

Build and start the API

Usage

1
2
3
4
5
6
7
api(
  port = 8888,
  queue_id = NULL,
  workers = 2,
  results_dir = tempdir(),
  prerun_dir = NULL
)

Arguments

port

Port for API

queue_id

ID of an existing queue to connect to, creates a new one if NULL

workers

Number of workers to spawn

results_dir

The dir for results to be saved to

prerun_dir

The directory to store prerun results

Value

Running API


mrc-ide/hintr2 documentation built on Sept. 8, 2020, 12:54 p.m.