serve: Serve a CRAN-like Package Repository

Description Usage Arguments Value

View source: R/server.R

Description

Starts a local web server to serve packages from the repository.

Usage

1
2
serve(repo, repo_name = "Cranlift", host = "127.0.0.1", port = 8000,
  detach = FALSE, use_archive = TRUE, fields = NULL)

Arguments

repo

The location of the package repository.

repo_name

The name of the repository, written to DESCRIPTION files.

host

An IPv4 address owned by the server. Defaults to localhost.

port

The port to run the server on.

detach

Whether the server should run in the foreground or return immediately and run in the background.

use_archive

Whether old source packages should be moved to an Archive.

fields

Metadata for each package to add to the index. When NULL, use the defaults. See write_PACKAGES.

Value

When detach = TRUE, this function returns a handle that can be passed to stopServer. Otherwise it will not return at all, and must be interrupted from the console.


atheriel/cranlift documentation built on Jan. 1, 2020, 10:11 p.m.