Skip to content

Commit

Permalink
assertthatconflict: assertthat::noNA for other scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
falkmielke committed Nov 12, 2024
1 parent 5b1df43 commit 1032f21
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion R/eval.R
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ eval_chem <- function(data,
date, lab_sample_id, chem_variable, value, unit, below_loq."
)

assert_that(is.flag(uniformity_test), noNA(uniformity_test))
assert_that(is.flag(uniformity_test), assertthat::noNA(uniformity_test))

data <-
data %>%
Expand Down
12 changes: 6 additions & 6 deletions R/selectlocs.R
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@ selectlocs_xg3 <- function(data,
}

assert_that(inherits(conditions, "data.frame"))
assert_that(is.flag(verbose), noNA(verbose))
assert_that(is.flag(list), noNA(list))
assert_that(is.flag(verbose), assertthat::noNA(verbose))
assert_that(is.flag(list), assertthat::noNA(list))

assert_that(all(c("xg3_variable",
"statistic",
Expand Down Expand Up @@ -967,8 +967,8 @@ selectlocs_chem <- function(data,
}

assert_that(inherits(conditions, "data.frame"))
assert_that(is.flag(verbose), noNA(verbose))
assert_that(is.flag(list), noNA(list))
assert_that(is.flag(verbose), assertthat::noNA(verbose))
assert_that(is.flag(list), assertthat::noNA(list))

assert_that(all(c("chem_variable",
"statistic",
Expand Down Expand Up @@ -1167,8 +1167,8 @@ selectlocs <- function(data,
}

assert_that(inherits(conditions, "data.frame"))
assert_that(is.flag(verbose), noNA(verbose))
assert_that(is.flag(list), noNA(list))
assert_that(is.flag(verbose), assertthat::noNA(verbose))
assert_that(is.flag(list), assertthat::noNA(list))

assert_that(all(c("variable",
"statistic",
Expand Down
2 changes: 1 addition & 1 deletion R/sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ as_points <- function(df,
assert_that(is.string(yvar))
assert_that(has_name(df, xvar))
assert_that(has_name(df, yvar))
assert_that(is.flag(warn_dupl), noNA(warn_dupl))
assert_that(is.flag(warn_dupl), assertthat::noNA(warn_dupl))

require_pkgs("sf")

Expand Down

0 comments on commit 1032f21

Please sign in to comment.