Description Usage Arguments Details
Install one or more snippets by downloading them from a URL.
1 2 | snippets_install_url(url, name = NULL, language = "r",
path = snippets_path(language))
|
url |
URL to install from |
name |
name of snippet to install. If NULL, installs all snippets from the URL. |
language |
language of the snippet. Choices are "r", "c_cpp", "html",
"css", "java", "javascript", "python", and "sql". Ignored if |
path |
path to .snippets file |
Note that a .snippets file for a language may not yet exist. If it does not exist, go to Preferences->Code->Edit Snippets in RStudio, make a trivial change to the language of choice (for example, a new empty line), and click Save. This will create the language file in ~/.R/snippets/<language>.snippets with defaults included.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.