Skip to content

Commit a919437

Browse files
olivroyjennybc
andauthored
Add yaml to RStudio snippets (#1941)
* Add yaml to RStudio snippets * Add news + redocument --------- Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>
1 parent 93f4410 commit a919437

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# usethis (development version)
22

3+
* `edit_rstudio_snippets()` now accepts yaml snippets (@olivroy, #1941).
4+
35
* `use_standalone()` inserts an improved header that includes the code needed to
46
update the standalone file (@krlmlr, #1903).
57

R/edit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ edit_r_makevars <- function(scope = c("user", "project")) {
144144
#' @param type Snippet type (case insensitive text).
145145
edit_rstudio_snippets <- function(type = c(
146146
"r", "markdown", "c_cpp", "css",
147-
"html", "java", "javascript", "python", "sql", "stan", "tex"
147+
"html", "java", "javascript", "python", "sql", "stan", "tex", "yaml"
148148
)) {
149149

150150
type <- tolower(type)

man/edit.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)