Skip to content

Commit f36e23f

Browse files
authored
fix: namespace-qualify chrome_print() in test helper (#344)
* fix: namespace-qualify chrome_print() in test helper testit 0.16 removed the library() call from test_pkg(), so the package is no longer attached to the search path during tests. print_pdf() is defined in the runner script (global env), so chrome_print must be namespace-qualified to be found. * Ignore AI related files * Correctly name workflows
1 parent b6a1436 commit f36e23f

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ inst/examples$
66
^codecov\.yml$
77
^\.github$
88
^LICENSE\.md$
9+
^\.positai$
10+
^\.claude$

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
R-CMD-check:
2323
runs-on: ${{ matrix.config.os }}
2424

25-
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
25+
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) [Pandoc ${{matrix.config.pandoc}}]
2626

2727
strategy:
2828
fail-fast: false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
.positai
6+
AGENTS.md

tests/test-ci.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# run tests on CI (these tests depend on Chrome)
22

33
print_pdf = function(input, output = tempfile(), ...) {
4-
chrome_print(input, output, ...)
4+
pagedown::chrome_print(input, output, ...)
55
}
66

77
if (!is.na(Sys.getenv('CI', NA))) {

0 commit comments

Comments
 (0)