GitLink | R Documentation |
Generates a link to a file on a specified GitHub repository.
GitLink(path = "", alt = NULL, raw = TRUE,
user = getOption("GitHubUser"), repo = getOption("GitHubRepo"))
GitHubPages(path = "", alt = NULL, user = getOption("GitHubUser"),
repo = getOption("GitHubRepo"))
path |
Character string specifying path to file in specified GitHub repository |
alt |
Character string specifying link text to display if knitr output is in HTML format. |
raw |
Logical specifying whether to link to the raw file at raw.githubusercontent.com. If 'FALSE', links to the file at github.com. |
user , repo |
Character string specifying GitHub username and repository, overriding any set in options. These values need not be provided if GitHub details have been set globally using ‘options(GitHubUser=’ms609', GitHubRepo='MorphoBank')'. |
A link to a file hosted on GitHub, formatted appropriately for HTML or Latex output
GitHubPages
: A link to 'user'.github.io/'repo'/
Martin R. Smith
{
GitLink('ms609', 'MorphoBank')
options(GitHubUser="ms609", GitHubRepo="MorphoBank")
GitLink()
GitHubPages()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.