Description Usage Arguments Author(s) Examples
View source: R/source_github.R
Source a file hosted in a pubic or private GitHub repo
1 | source_github(repo, branch = "master", file, auth = Sys.getenv("GITHUB_PAT"))
|
repo |
Name of the GitHub repository in the form |
branch |
Branch from which to source the file (default master). |
file |
Filename to source, including relative path. |
auth |
Personal Access Token to use for authorization.
Required to access files in private repositories.
By default, checks for |
Alex Chubaty
1 2 3 4 5 6 7 8 9 | ## Not run:
repo = "PredictiveEcology/SpaDES"
branch = "development"
file = "_ignore/thinSpatialPolygons.R"
auth = "" ## your Personal Access Token
source_github(repo, branch, file, auth)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.