Skip to content

Commit

Permalink
N_int to fix tests_preview_facet.png
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Sep 28, 2024
1 parent cc51a0b commit 4fbe57b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: atime
Type: Package
Title: Asymptotic Timing
Version: 2024.9.25
Version: 2024.9.27
Authors@R: c(
person("Toby", "Hocking",
email="[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Changes in version 2024.9.27

- atime_pkg tests_preview_facet.png width fixed/smaller (was same as width of tests_all_facet.png).

Changes in version 2024.9.25

- atime_pkg creates tests_preview_facet.png if N.tests.preview (default 4, can be defined in atime/tests.R) is less than the number of test cases. It should be informative even when zoomed out, since it shows only the test cases which had smallest p-values (most significant differences between HEAD and min). Recommended for display as thumbnail/preview image with links to the larger tests_preview_all.png that includes all test results (which may not be readable/informative unless you zoom/scroll, if there are 10+ tests).
Expand Down
2 changes: 1 addition & 1 deletion R/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ atime_pkg <- function(pkg.path=".", tests.dir=NULL){
sprintf("tests_%s_facet.png", N_name))
grDevices::png(
out.png,
width=test.info$width.in*N.tests,
width=test.info$width.in*N_int,
height=test.info$height.in,
units="in",
res=100)
Expand Down

0 comments on commit 4fbe57b

Please sign in to comment.