Description Usage Arguments Details Examples
Install one or more snippets from a GitHub repository. These should be in the form of one or more <language>.snippets files in the top-level directory. .snippets files that are not
1 2 | snippets_install_github(repo, name = NULL, language = NULL,
directory = SNIPPET_DIRECTORY)
|
repo |
Username and repository name, e.g. "dgrtwo/snippets" |
name |
name of snippet to install, which must be given along with a language. If NULL, installs all snippets from the language. |
language |
Language from repo to install. If NULL, installs all snippets |
directory |
Directory to install snippets to |
The directory
argument is available mainly for testing purposes.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
snippets_install_github("dgrtwo/snippets")
# install just R or C/C++
snippets_install_github("dgrtwo/snippets", language = "r")
snippets_install_github("dgrtwo/snippets", language = "c_cpp")
# install just a single snippet
snippets_install_github("dgrtwo/snippets", language = "r", name = "S3")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.