.downloadFileMasterMainAuth | R Documentation |
main
-master
-aware download from GitHubEquivalent to utils::download.file
, but taking the GITHUB_PAT
environment
variable and using it to access the Github url.
.downloadFileMasterMainAuth(
url,
destfile,
need = "HEAD",
verbose = getOption("Require.verbose"),
verboseLevel = 2
)
url |
a |
destfile |
a character string (or vector, see the |
need |
If specified, user can suggest which |
verbose |
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 |
verboseLevel |
A numeric indicating what verbose threshold (level) above which this message will show. |
This is called for its side effect, namely, the same as utils::download.file
, but
using a GITHUB_PAT
, it if is in the environment, and trying both master
and
main
if the actual url
specifies either master
or main
and it does not exist.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.