Description Usage Arguments Value Examples
This function builds a URL in the form:
https://raw.githubusercontent.com/<username>/<repo>/<branch>/<path>
.
1 | from_repo(username, repo, path, branch = "master")
|
username |
A string. The owner of the repo. |
repo |
A string. The name of the repo. |
path |
A string. The path to the file. |
branch |
A string. The branch the file is on. |
An URL to the path.
1 2 3 4 5 6 7 8 9 10 11 12 | from_repo(
username = "liao961120",
repo = "getable",
path = "docs/demo/data/df.json",
branch = "master")
renderTable(
from_repo(
username = "liao961120",
repo = "getable",
path = "docs/demo/data/df.json",
branch = "master")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.