inst/templates/microservice/entrypoints/plumber-background.R

################################################################################
## plumber: Quick Start Guide
## <https://www.rplumber.io/index.html>
################################################################################
path <- usethis::proj_path("inst", 'entrypoints', '{name}-foreground.R')
rstudioapi::jobRunScript(
    path = path,
    name = "Plumber API", workingDir = ".",
    importEnv = TRUE,
    exportEnv = ""
)

Try the usethat package in your browser

Any scripts or data that you put into this service are public.

usethat documentation built on Sept. 20, 2021, 5:08 p.m.