Skip to contents

Downloads and builds the R package references given by packages, compiling each package for use with WebAssembly and webR. The resulting WebAssembly binary packages are written to out_dir.

Usage

build(packages, out_dir = ".", remotes = NULL, dependencies = FALSE)

Arguments

packages

A character vector of one or more package references.

out_dir

The output directory. Defaults to ".".

remotes

A character vector of package references to prefer as a remote source. If NA, use a built-in list of references to packages pre-modified for use with webR. Defaults to NULL, meaning no preference over the usual remote sources.

dependencies

Dependency specification for packages to additionally add to the repository. Defaults to FALSE, meaning no additional packages. Use NA to install only hard dependencies whereas TRUE installs all optional dependencies as well. See pkgdepends::as_pkg_dependencies for details.