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))
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)
plumber
plumber
Advantagesplumber
Disadvantagesread_table
, write_table
,
and orchestrator
, where the orchestrator
reads a data table, transforms
it, and writes it back, then the orchestrator
can't make inwards calls via
HTTP to read_table
and write_table
.warning("While `plumber` is single-threaded by nature, it is possible to perform parallel execution using the `promises` package. See links under References.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.