Download a .zip file of the module and extract (unzip) it to a user-specified location.
downloadModule(name, path, version, repo, data, quiet, quickCheck = FALSE) # S4 method for character,character,character,character,logical,logical downloadModule(name, path, version, repo, data, quiet, quickCheck = FALSE) # S4 method for character,missing,missing,missing,missing,missing downloadModule(name, quickCheck) # S4 method for character,ANY,ANY,ANY,ANY,ANY downloadModule(name, path, version, repo, data, quiet, quickCheck = FALSE)
Character string giving the module name.
Character string giving the location in which to save the downloaded module.
The module version to download. (If not specified, or
GitHub repository name.
Logical. If TRUE, then the data that is identified in the module metadata will be downloaded, if possible. Default if FALSE.
Logical. This is passed to
A list of length 2. The first element is a character vector containing
a character vector of extracted files for the module. The second element is
tbl with details about the data that is relevant for the function,
including whether it was downloaded or not, and whether it was renamed
(because there was a local copy that had the wrong file name).
Currently only works with a public GitHub repository, where modules are in
modules directory in the root tree on the
downloadModule uses the
GITHUB_PAT environment variable
if a value is set. This alleviates 403 errors caused by too-frequent downloads.
Generate a GitHub personal access token at https://github.com/settings/tokens.
The default is to overwrite any existing files in the case of a conflict.