from_repo {getable} | R Documentation |
Build URL to a file from GitHub Repository
Description
This function builds a URL in the form:
https://raw.githubusercontent.com/<username>/<repo>/<branch>/<path>
.
Usage
from_repo(username, repo, path, branch = "master")
Arguments
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. |
Value
An URL to the path.
Examples
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")
)
[Package getable version 1.0.3 Index]