Skip to content

Commit f29959a

Browse files
committed
Merge branch 'main' into markup-in-link-text
2 parents 01392ac + 145e7b4 commit f29959a

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: roxygen2
22
Title: In-Line Documentation for R
3-
Version: 7.3.2.9000
3+
Version: 7.3.3.9000
44
Authors@R: c(
55
person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre", "cph"),
66
comment = c(ORCID = "0000-0003-4757-117X")),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# roxygen2 (development version)
22

3+
# roxygen2 7.3.3
4+
35
* Package documentation now converts ROR IDs into a useful link (#1698, @maelle).
46

57
* The check for unexported S3 methods was improved, so it does not hang any more

tests/testthat/test-markdown-code.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,14 @@ test_that("inline code gives useful warning", {
133133
"
134134

135135
expect_snapshot(
136-
out <- roc_proc_text(rd_roclet(), block)[[1]]
136+
out <- roc_proc_text(rd_roclet(), block)[[1]],
137+
transform = function(x) {
138+
line <- grep("~~~", x)[1]
139+
if (!is.na(line)) {
140+
x <- x[1:(line-1)]
141+
}
142+
x
143+
}
137144
)
138145
expect_equal(out$get_value("description"), "\\verb{r 1 + }")
139146
})

tests/testthat/test-rd-include-rmd.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ test_that("useful warnings", {
297297
transform = function(x) {
298298
x <- gsub(path, "<temp-path.Rmd>", x, fixed = TRUE)
299299
x <- gsub("file.*\\.Rmd", "<another-temp-path.Rmd>", x)
300+
line <- grep("~~~", x)[1]
301+
if (!is.na(line)) {
302+
x <- x[1:(line-1)]
303+
}
300304
x
301305
}
302306
)

0 commit comments

Comments
 (0)