gh_url | R Documentation |
Useful for pointing to files on Github that live in a local clone of a repo
gh_url(path, repo, user = "petrbouchal", remote = NULL, branch = "main")
path |
path to file (the bit that goes after /tree/branch, so presumably the local path from project root) |
repo |
repo name; used if 'remote' is not provided. |
user |
Github user; used if 'remote' is not provided. Defaults to '"petrbouchal"' |
remote |
remote in the form of user/repo. |
branch |
branch. Default '"main"' |
character vector of same length as inputs
Inputs are recycled if not all of the same length
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.