Skip to content

Commit

Permalink
fewer sanity checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 2, 2025
1 parent 900190d commit 0577744
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/sanity.R
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,9 @@ sanitize_replace <- function(replace) {


sanity_num_mark <- function(digits, num_mark_big, num_mark_dec) {
if (is.null(digits)) {
if (num_mark_big != "") stop("`num_mark_big` requires a `digits` value.", call. = FALSE)
if (num_mark_dec != ".") stop("`num_mark_dec` requires a `digits` value.", call. = FALSE)
}
## commented out because doesn't work with french decimals
# if (is.null(digits)) {
# if (num_mark_big != "") stop("`num_mark_big` requires a `digits` value.", call. = FALSE)
# if (num_mark_dec != ".") stop("`num_mark_dec` requires a `digits` value.", call. = FALSE)
# }
}

0 comments on commit 0577744

Please sign in to comment.