Skip to content

Commit

Permalink
add safeguard for par (on.exit added), submit to CRAN v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DavZim committed Apr 24, 2023
1 parent 74a6237 commit b6f1a8a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.1.2
Date: 2023-04-20 18:02:26 UTC
SHA: 04177e41d96d427c0ad9357c45fc6e627b75c0da
Version: 0.1.4
Date: 2023-04-24 19:55:35 UTC
SHA: 74a6237e38192093630d08250444bab3ee1207b9
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dataverifyr
Type: Package
Title: A Lightweight, Flexible, and Fast Data Validation Package that Can Handle All Sizes of Data
Version: 0.1.3
Version: 0.1.4
Authors@R: c(
person(given = "David",
family = "Zimmermann-Kollenda",
Expand Down
3 changes: 1 addition & 2 deletions R/visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ plot_res <- function(res,
r <- res[rev(seq(n)), ]

op <- par(mai = c(1.5, 2, 1, 1), xpd = TRUE, family = "mono")
on.exit(par(op), add = TRUE)

bp <- barplot(
matrix(c(r$pass / r$tests, r$fail / r$tests), ncol = nrow(r), byrow = TRUE),
Expand Down Expand Up @@ -77,8 +78,6 @@ plot_res <- function(res,
rep("darkgray", n + 1)) # total
)
}

par(op)
}

# x <- 99.999999999 to 99.99
Expand Down
5 changes: 1 addition & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

Fixed wrong URL of https://r-datatable.com.

Use single-quotes around software names in the DESCRIPTION file.
Added safeguard around `par`, added `on.exit()` after call to par to keep userspace clean.

0 comments on commit b6f1a8a

Please sign in to comment.