source(usethis::proj_path("vignettes",  "_common.R"))
file_fs <- system.file("inst", "configurations", "fs.yml", package = "microservices", mustWork = TRUE)
info <- config::get("use_microservice", file=file_fs)
microservice <- list(files = info$files, dependencies = as.data.frame(info$dependencies))

How It Works

Given a path to a folder

When use_microservice(path = ".") is called

Then the function creates the following files:


And updates the following files:


And adds the following packages to the DESCRIPTION file:

kable(microservice$dependencies)

When to Use plumber

plumber Advantages

plumber Disadvantages

warning("While `plumber` is single-threaded by nature, it is possible to perform parallel execution using the `promises` package. See links under References.")

Workflow


References



tidylab/microservices documentation built on Oct. 3, 2022, 6:48 p.m.