Description Usage Arguments Value Functions Author(s) Examples
Generates a link to a file on a specified GitHub repository.
1 2 3 4 5 |
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
1 2 3 4 5 6 | {
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.