diff --git a/DESCRIPTION b/DESCRIPTION index 64cbdf1..82f35a3 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: namer Title: Names Your 'R Markdown' Chunks -Version: 0.1.6 +Version: 0.1.7 Authors@R: c(person(given = "Rhian", family = "Davies", diff --git a/NEWS.md b/NEWS.md index 40558bf..ed32fb2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,13 @@ +# namer 0.1.7 + +* `name_dir_chunks()` now also names chunks in Quarto-Files. Note that Quarto chunks are labelled in the RMarkdown style (` ```{r mylabel} `), *not* in the Quarto style (see below): + +```` +```{r} +#| label: mylabel +``` +```` + # namer 0.1.6 * Update maintainer diff --git a/R/name_chunks.R b/R/name_chunks.R index c805d1e..3a05f9d 100644 --- a/R/name_chunks.R +++ b/R/name_chunks.R @@ -134,7 +134,7 @@ name_dir_chunks <- function(dir, unname = FALSE){ cli::cat_rule("Naming all chunks") - rmds <- fs::dir_ls(dir, regexp = "*.[Rr]md") + rmds <- fs::dir_ls(dir, regexp = "*.[RrQq]md") purrr::walk(rmds, chatty_name_chunks) return(invisible(TRUE))