Skip to content

Commit

Permalink
Add yaml to RStudio snippets (#1941)
Browse files Browse the repository at this point in the history
* Add yaml to RStudio snippets

* Add news + redocument

---------

Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>
  • Loading branch information
olivroy and jennybc authored Jul 24, 2024
1 parent 93f4410 commit a919437
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
2 changes: 1 addition & 1 deletion R/edit.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion man/edit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a919437

Please sign in to comment.