Skip to content

Commit 993601c

Browse files
committed
Add instructions for YAML chunk syntax update
1 parent e9456f1 commit 993601c

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# rdev 1.15.6
2+
3+
* Added instructions for YAML chunk syntax update to `upkeep_checklist()`
4+
15
# rdev 1.15.5
26

37
* Added items for ggplot2 version 4 upgrade and switch to YAML chunk [options](https://yihui.org/knitr/options/) to `upkeep_checklist()`

R/upkeep.R

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,16 @@ upkeep_checklist <- function(last_upkeep = last_upkeep_year()) { # nolint: cyclo
114114
"Update for ggplot2 [version 4](https://tidyverse.org/blog/2025/09/ggplot2-4-0-0/)",
115115
uses_ggplot2
116116
),
117-
todo("Switch to chunk option YAML [syntax](https://yihui.org/knitr/options/"),
117+
todo("Switch to chunk option YAML [syntax](https://yihui.org/knitr/options/)"),
118+
"",
119+
"Update to YAML chunk syntax using:",
120+
"",
121+
"```",
122+
paste0(
123+
'lapply(list.files(pattern = "\\\\.Rmd$", recursive = TRUE), knitr::convert_chunk_header, ',
124+
'output = identity, type = "yaml", width = 100)'
125+
),
126+
"```",
118127
""
119128
)
120129
}

tests/testthat/test-upkeep.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_that("use_upkeep_issue validates arguments", {
1818

1919
# upkeep_checklist
2020

21-
base_length <- 37
21+
base_length <- 43
2222

2323
test_that("upkeep_checklist is expected length for first upkeep", {
2424
usethis::ui_silence(local_temppkg(type = "rdev"))
@@ -75,5 +75,5 @@ test_that("upkeep_checklist is expected length for last upkeep year", {
7575
expect_length(upkeep_checklist(2023), base_length - 11)
7676
expect_length(upkeep_checklist(2024), base_length - 16)
7777
expect_length(upkeep_checklist(2025), base_length - 16)
78-
expect_length(upkeep_checklist(2026), base_length - 24)
78+
expect_length(upkeep_checklist(2026), base_length - 30)
7979
})

0 commit comments

Comments
 (0)