getGithubFile | R Documentation |
This can be used within e.g., the options
or params
arguments for
setupProject
to get a ready-made file for a project.
getGithubFile(
gitRepoFile,
overwrite = FALSE,
destDir = ".",
verbose = getOption("Require.verbose")
)
gitRepoFile |
Character string that follows the convention
GitAccount/GitRepo@Branch/File, if @Branch is omitted, then it will be
assumed to be |
overwrite |
A logical vector of same length (or length 1) |
destDir |
A directory to put the file that is to be downloaded. |
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 |
getModule
filename <- getGithubFile("PredictiveEcology/LandWeb@development/01b-options.R",
destDir = Require::tempdir2())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.