Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yaml to RStudio snippets #1941

Merged
merged 5 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading