Skip to content

Commit 63be223

Browse files
committed
feat: Batteries included for converting knitr
1 parent 4aa55e7 commit 63be223

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

R/upkeep.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,8 @@ tidy_upkeep_checklist <- function(
279279
),
280280
todo(
281281
'
282-
`knitr::convert_chunk_header(type = "yaml")` to convert in-header \\
283-
chunk options to the newer in-body style used by Quarto
282+
Convert in-header chunk options to the newer in-body style used by Quarto:
283+
`fs::dir_ls("vignettes", glob = "*.Rmd") |> purrr::walk(~ knitr::convert_chunk_header(.x, output = identity, type = "yaml"))`
284284
'
285285
),
286286
todo(

tests/testthat/_snaps/upkeep.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
* [ ] Switch to the base anonymous function syntax (`\(x)`)
5858
* [ ] Add ROR for Posit in `DESCRIPTION`:
5959
`person("Posit Software, PBC", role = c("cph", "fnd"), comment = c(ROR = "03wc8by49"))`
60-
* [ ] `knitr::convert_chunk_header(type = "yaml")` to convert in-header chunk options to the newer in-body style used by Quarto
60+
* [ ] Convert in-header chunk options to the newer in-body style used by Quarto:
61+
`fs::dir_ls("vignettes", glob = "*.Rmd") |> purrr::walk(~ knitr::convert_chunk_header(.x, output = identity, type = "yaml"))`
6162
* [ ] Switch to `expect_snapshot(error = TRUE)` instead of calling `expect_error()` without specifying `class =`
6263
6364
### To finish
@@ -102,7 +103,8 @@
102103
* [ ] Switch to the base anonymous function syntax (`\(x)`)
103104
* [ ] Add ROR for Posit in `DESCRIPTION`:
104105
`person("Posit Software, PBC", role = c("cph", "fnd"), comment = c(ROR = "03wc8by49"))`
105-
* [ ] `knitr::convert_chunk_header(type = "yaml")` to convert in-header chunk options to the newer in-body style used by Quarto
106+
* [ ] Convert in-header chunk options to the newer in-body style used by Quarto:
107+
`fs::dir_ls("vignettes", glob = "*.Rmd") |> purrr::walk(~ knitr::convert_chunk_header(.x, output = identity, type = "yaml"))`
106108
* [ ] Switch to `expect_snapshot(error = TRUE)` instead of calling `expect_error()` without specifying `class =`
107109
108110
### To finish

0 commit comments

Comments
 (0)