diff --git a/NEWS.md b/NEWS.md index 7b5a0b3a3..d908e7e7c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # usethis (development version) +* `edit_rstudio_snippets()` now accepts yaml snippets (@olivroy, #1941). + * `use_standalone()` inserts an improved header that includes the code needed to update the standalone file (@krlmlr, #1903). diff --git a/R/edit.R b/R/edit.R index 58b025d12..203c6450e 100644 --- a/R/edit.R +++ b/R/edit.R @@ -144,7 +144,7 @@ edit_r_makevars <- function(scope = c("user", "project")) { #' @param type Snippet type (case insensitive text). edit_rstudio_snippets <- function(type = c( "r", "markdown", "c_cpp", "css", - "html", "java", "javascript", "python", "sql", "stan", "tex" + "html", "java", "javascript", "python", "sql", "stan", "tex", "yaml" )) { type <- tolower(type) diff --git a/man/edit.Rd b/man/edit.Rd index c76d784a0..43fb62483 100644 --- a/man/edit.Rd +++ b/man/edit.Rd @@ -23,7 +23,7 @@ edit_r_makevars(scope = c("user", "project")) edit_rstudio_snippets( type = c("r", "markdown", "c_cpp", "css", "html", "java", "javascript", "python", - "sql", "stan", "tex") + "sql", "stan", "tex", "yaml") ) edit_rstudio_prefs()