Description Usage Arguments Value Examples
This function sources an R script from a commit in a repository using
source()
.
1 | github_source(path, ref, repo, ...)
|
path |
(string) The path to the file, within the repository. |
ref |
(string) Either a SHA, branch or tag used to identify the commit. |
repo |
(string) The repository specified in the format: |
... |
Parameters passed to |
The result of the sourced script.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
github_source(
path = "inst/test-data/test-script.R",
ref = "main",
repo = "ChadGoymer/githapi"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.