Downloads and builds all available source R packages from the R package
repositories given by repos, 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.
Arguments
- repos
A character vector containing the base URL(s) of CRAN-like R package repositories. Defaults to the Posit Package Manager CRAN mirror.
- skip
A character string containing a regular expression matching names of packages to skip. Defaults to
FALSE, meaning keep all packages.- ...
Arguments passed on to
add_pkgrepo_dirThe package repository directory. Defaults to
"./repo".remotesA 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.dependenciesDependency specification for packages to additionally add to the repository. Defaults to
FALSE, meaning no additional packages. UseNAto install only hard dependencies whereasTRUEinstalls all optional dependencies as well. See pkgdepends::as_pkg_dependencies for details.compressWhen
TRUE, add and compress Emscripten virtual filesystem metadata in the resulting R package binary.tgzfiles. Otherwise,file_packager()is used to create uncompressed virtual filesystem images included in the output binary package repository. Defaults toTRUE.
