File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 11source(" helpers.R" )
22using(" tinysnapshot" )
33
4+ if (! is_local ) {
5+ exit_file(" Run on Vincent's machine" )
6+ }
7+
48# vector row labels
59set.seed(48103 )
610dat <- data.frame (
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ source("helpers.R")
22using(" tinysnapshot" )
33options(tinytable_print_output = " latex" )
44
5+ if (! is_local ) {
6+ exit_file(" Run on Vincent's machine" )
7+ }
8+
59x <- mtcars [1 : 4 , 1 : 5 ]
610
711expect_snapshot_print(
Original file line number Diff line number Diff line change @@ -9,12 +9,9 @@ dest_dir <- tempdir()
99dest_pdf <- file.path(dest_dir , " out.pdf" )
1010dest_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
2017expect_equal(
@@ -25,12 +22,9 @@ expect_equal(
2522# logfiles that exist before call to tinytex are left untouched
2623cat(" 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
3529expect_true(" somelog.log" %in% list.files(dest_dir ))
3630
You can’t perform that action at this time.
0 commit comments