snippets_install | R Documentation |
This function installs a set of R snippets that are helpful when working with Metropolitan Council projects in in RStudio. By default, the snippets are installed where RStudio will find them. If you haven't previously installed snippets to RStudio, these snippets will mask some of the built-in snippets that ship with RStudio.
snippets_install(install_path = NULL, update = TRUE)
install_path |
character, where should the snippets be installed? If |
update |
logical, should existing snippets be updated in place if there are any
conflicts? Default is yes ( |
Snippets will only appear when writing in the snippet's language. For example, HTML snippets will not appear while editing a ".R" file, but will appear when editing a ".html" file.
If you already have snippets installed,
you can you can have the installed snippets update the existing snippets
in place with update = TRUE
. Or you can append the new snippets to the
existing snippets files with update = FALSE
. This option is desirable if
you want to make sure that no snippets are overwritten. The newer snippets
will mask older snippets, but no data will be lost.
This function is adapted from js4shiny::snippets_install()
Garrick Aden-Buie g.adenbuie@gmail.com, Liz Roten liz.roten@metc.state.mn.us
Other spatial helpers:
fetch_county_geo()
## Not run:
snip_tmp <- tempfile("snippets")
dir.create(snip_tmp)
snippets_install(snip_tmp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.