set_rstudio_snippets() combines multiple snippet files, then opens
any modified snippet configs. The default behavior is to copy all of the
default RStudio snippet types as well as all recognized snippet files found in
the path_shared_code() directory.
Files created by edit_rstudio_snippets() and
set_rstudio_snippets() will *mask*, not supplement, the built-in
default snippets. If you like the built-in snippets, make sure they are
included with your custom snippets.
set_rstudio_snippets(
...,
include_rstudio_defaults = TRUE,
include_shared_code = TRUE,
include_ask_first = FALSE
)named character vectors of file paths to snippet files. The
names may be any of the values of type (up to one argument per
type).
logical indicating whether to include
RStudio version 2022.2.3.492.3 default snippets.
logical indicating whether to include
snippets found in a "snippets" directory under
path_shared_code().
logical indicating whether to ask which
files to include from RStudio default snippets and shared code snippets.
path to the users snippet file(s), invisibly.