Skip to content

Commit e7d5006

Browse files
committed
shorten test on CRAN
1 parent 8678ee6 commit e7d5006

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/testthat/test-methods.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,20 @@ bib <- ReadBib(system.file("Bib", "biblatexExamples.bib",
1010

1111
test_that("yaml printing with authoryear", {
1212
BibOptions(check.entries = FALSE)
13-
print(bib[47:92], .opts = list(bib.style = "authoryear",
13+
idx <- if (Sys.getenv("NOT_CRAN") == "")
14+
47:92
15+
else
16+
48:50
17+
print(bib[idx], .opts = list(bib.style = "authoryear",
1418
sorting = "anyvt", style = "yaml"))
1519
})
1620

1721
test_that("R style printing with authoryear", {
18-
print(bib[1:46], .opts = list(bib.style = "authoryear",
22+
idx <- if (Sys.getenv("NOT_CRAN") == "true")
23+
1:46
24+
else
25+
8:10
26+
print(bib[idx], .opts = list(bib.style = "authoryear",
1927
sorting = "anyt", style = "R"))
2028
})
2129

0 commit comments

Comments
 (0)