pr_add_package {microCRAN}R Documentation

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)

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/⁠.

Value

NULL invisibly; called to modify the response.

See Also

build(), plumber::pr_post


[Package microCRAN version 0.9.0-1 Index]