pr_add_package: Plumber route for adding package to repository

View source: R/handlers-.R

pr_add_packageR 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


microCRAN documentation built on Nov. 4, 2023, 1:07 a.m.