master-aware download from GitHub
utils::download.file, but taking the
variable and using it to access the Github url.
.downloadFileMasterMainAuth( url, destfile, need = "HEAD", verbose = getOption("Require.verbose"), verboseLevel = 2 )
character string (or longer vector e.g.,
"libcurl" method) naming the URL of a resource to be
a character string (or vector, see the
argument) with the file path where the downloaded file is to be
saved. Tilde-expansion is performed.
If specified, user can suggest which
try first. If unspecified,
HEAD is used.
Numeric or logical indicating how verbose should the function
be. If -1 or -2, then as little verbosity as possible. If 0 or FALSE,
then minimal outputs; if
1 or TRUE, more outputs;
2 even more. NOTE: in
Require function, when
verbose >= 2, the return object will have an
attr(.., "Require") which has lots of information about the
processes of the installs.
A numeric indicating what verbose threshold (level) above which this message will show.
This is called for its side effect, namely, the same as
GITHUB_PAT, it if is in the environment, and trying both
main if the actual
url specifies either
main and it does not exist.