From a76858ebcffc47d66eada976c35c92c0eefcbe1a Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Sun, 5 Oct 2025 21:11:57 -0500 Subject: [PATCH 1/2] start the next version --- DESCRIPTION | 2 +- NEWS.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 93d7d373..dd4938b5 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: bookdown Type: Package Title: Authoring Books and Technical Documents with R Markdown -Version: 0.45 +Version: 0.45.1 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Christophe", "Dervieux", , "cderv@posit.co", role = c("ctb"), diff --git a/NEWS.md b/NEWS.md index faca4c62..e3e0ff45 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# CHANGES IN bookdown VERSION 0.46 + + # CHANGES IN bookdown VERSION 0.45 - `gitbook()` TOC now works again with Pandoc 3.2.1 and above (thanks, @privefl, #1503). From 86e363126d77ef699f74c0f2a52df9ecc4ad50fc Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 3 Nov 2025 12:32:42 -0600 Subject: [PATCH 2/2] remove tests for xfun::with_ext() --- DESCRIPTION | 2 +- NEWS.md | 1 + tests/testit/test-utils.R | 29 +++-------------------------- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index dd4938b5..51775bcd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: bookdown Type: Package Title: Authoring Books and Technical Documents with R Markdown -Version: 0.45.1 +Version: 0.45.2 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person("Christophe", "Dervieux", , "cderv@posit.co", role = c("ctb"), diff --git a/NEWS.md b/NEWS.md index e3e0ff45..951853be 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ # CHANGES IN bookdown VERSION 0.46 +- Removed tests for `xfun::with_ext()` that don't belong to this package. # CHANGES IN bookdown VERSION 0.45 diff --git a/tests/testit/test-utils.R b/tests/testit/test-utils.R index b160f38e..45b51c13 100644 --- a/tests/testit/test-utils.R +++ b/tests/testit/test-utils.R @@ -1,31 +1,8 @@ library(testit) -1 %==% 1 - -assert( - 'next_nearest() works', - next_nearest(c(1, 4, 8), 1:9) %==% c(2L, 5L, 9L) -) - -assert( - 'with_ext() works', - with_ext(NULL, 'a') %==% NULL, - with_ext('a', NULL) %==% 'a', - with_ext('a', 'bcd') %==% 'a.bcd', - with_ext('a.html', '') %==% 'a', - with_ext('a.html', 'tex') %==% 'a.tex', - with_ext('a.html', '.tex') %==% 'a.tex', - with_ext(c('a', 'b', 'c'), 'css') %==% c('a.css', 'b.css', 'c.css'), - with_ext(c('a.html', 'b', 'c.js'), 'css') %==% c('a.css', 'b.css', 'c.css'), - with_ext(c('a.html', 'b', 'c'), '.css') %==% c('a.css', 'b.css', 'c.css'), - with_ext('a', c('css', '.html')) %==% c('a.css', 'a.html'), - with_ext(c('a.doc', 'b.gz', 'c'), c('css', '.tar', '.png')) %==% c('a.css', 'b.tar', 'c.png') -) - -assert( - 'with_ext() signals an error when length(x) != length(ext)', - has_error(with_ext(c('a', 'b.css'), c('foo', 'bar', 'ham'))) -) +assert('next_nearest() works', { + (next_nearest(c(1, 4, 8), 1:9) %==% c(2L, 5L, 9L)) +}) assert('clean_meta_tags() cleans HTML inside ', { (clean_meta_tags('') %==%