launch_api: Launches an API in a new R process

View source: R/api.R

launch_apiR Documentation

Launches an API in a new R process

Description

Launches an API in a new R process

Usage

launch_api(function_name, random_port = NULL)

Arguments

function_name

the folder name where the plumber API is located. This should be in inst/plumber/

random_port

a numeric value used as a port

Value

callr result of the individual R process

Author(s)

Jorge Cimentada

Examples


## Not run: 
  live_api <- launch_api("api_coveragedb")
  live_api$kill()

## End(Not run)


cimentadaj/scrapex documentation built on Jan. 5, 2023, 9:49 p.m.