pr_add_package: Plumber route for adding package to repository
Description
Creates a Plumber route that handles an incoming
R-package.
Use rather build() to build the entire API.
Usage
pr_add_package(pr, path = "/add", repo_dir)
Value
NULL invisibly; called to modify the response.
Arguments
- pr
A Plumber router-object
- path
The path to the endpoint
- repo_dir
Path to local directory, where the root of the repository is.
The (source) packages will be stored locally at
{repo_dir}/src/contrib/.