run_servr: Spawn a child R session that runs a 'blocking' command

Description Usage Arguments Value

View source: R/testHelpers.R

Description

Run a blocking command in a child R session (for example a file server or shiny app)

Usage

1
2
run_servr(directory = ".", port = 4848,
  code = "servr::httd(dir='%s', port=%d)")

Arguments

directory

path that the server should map to.

port

port number to _attempt_ to run server on.

code

R code to execute in a child session

Value

port number of the successful attempt


tdhock/animint documentation built on July 27, 2019, 5:57 a.m.