• backup_rstudio_snippets() creates a back-up of snippets file.

  • list_snippet_file_backups() lists the names of current file with snippets and its back-ups.

  • remove_snippet_backup_duplicates() removes duplicated backup files.

backup_rstudio_snippets(type)

list_snippet_file_backups(type = get_default_snippet_types())

open_snippets_backup_dir()

remove_snippet_backup_duplicates()

Arguments

type

(character) A character vector of snippet types. Currently allowed values are "r", "markdown", "c_cpp", "css", "html", "java", "javascript", "python", "sql", "stan", "tex". May be unambiguously truncated. Defaults to "r".

Examples

if (FALSE) {

backup_rstudio_snippets("r")
backup_rstudio_snippets("markdown")

list_snippet_file_backups("r")

}