Skip to contents

Writes _server.yml at the root of the package, with engine: mordew, and keeps it out of the build. Posit Connect then serves the package over HTTP through {mordew}, following plumber2's _server.yml standard: deploy with rsconnect::deployAPI(".", contentCategory = "mcp"). Connect authenticates the clients itself, with its API keys.

Usage

add_connect(mordew_wd = get_mordew_wd())

Arguments

mordew_wd

Path to the package, get_mordew_wd() by default.

Value

Nothing: called to write _server.yml.

Examples

path <- file.path(
  tempfile(),
  "runlog"
)
create_mordew(
  path
)
add_connect(
  path
)
readLines(
  file.path(
    path,
    "_server.yml"
  )
)
#> [1] "engine: mordew"