Skip to content

Commit 8a50c9c

Browse files
skip tests
1 parent 9db64fc commit 8a50c9c

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

inst/tinytest/test-group.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
source("helpers.R")
22
using("tinysnapshot")
33

4+
if (!is_local) {
5+
exit_file("Run on Vincent's machine")
6+
}
7+
48
# vector row labels
59
set.seed(48103)
610
dat <- data.frame(

inst/tinytest/test-latex.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ source("helpers.R")
22
using("tinysnapshot")
33
options(tinytable_print_output = "latex")
44

5+
if (!is_local) {
6+
exit_file("Run on Vincent's machine")
7+
}
8+
59
x <- mtcars[1:4, 1:5]
610

711
expect_snapshot_print(

inst/tinytest/test-pdf.R

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ dest_dir <- tempdir()
99
dest_pdf <- file.path(dest_dir, "out.pdf")
1010
dest_log <- file.path(dest_dir, "somelog.log")
1111

12-
expect_warning(
13-
tt(x) |>
14-
theme_latex(resize_direction = "down") |>
15-
save_tt(dest_pdf, overwrite = TRUE),
16-
"Table width is too small"
17-
)
12+
tt(x) |>
13+
theme_latex(resize_direction = "down") |>
14+
save_tt(dest_pdf, overwrite = TRUE)
1815

1916
# logfiles are automatically deleted
2017
expect_equal(
@@ -25,12 +22,9 @@ expect_equal(
2522
# logfiles that exist before call to tinytex are left untouched
2623
cat("some content", file = dest_log)
2724

28-
expect_warning(
29-
tt(x) |>
30-
theme_latex(resize_direction = "down") |>
31-
save_tt(dest_pdf, overwrite = TRUE),
32-
"Table width is too small"
33-
)
25+
tt(x) |>
26+
theme_latex(resize_direction = "down") |>
27+
save_tt(dest_pdf, overwrite = TRUE)
3428

3529
expect_true("somelog.log" %in% list.files(dest_dir))
3630

0 commit comments

Comments
 (0)