Skip to contents

Downloads and builds the list of R package references in the file list_file, compiling each package for use with WebAssembly and webR. The resulting WebAssembly binary packages are added to the repository directory repo_dir. The repository directory will be created if it does not already exist.

Usage

add_list(list_file, ...)

Arguments

list_file

Path to a file containing a list of R package references.

...

Arguments passed on to add_pkg

repo_dir

The package repository directory. Defaults to "./repo".

remotes

A character vector of package references to prefer as a remote source. Defaults to NA, meaning prefer a built-in list of references to packages pre-modified for use with webR.

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.

compress

When TRUE, add and compress Emscripten virtual filesystem metadata in the resulting R package binary .tgz files. Otherwise, file_packager() is used to create uncompressed virtual filesystem images included in the output binary package repository. Defaults to TRUE.

Details

The R package references should be listed in the file list_file, one line per package reference.