R/fct_assert.R

Defines functions assert_different

#' @importFrom  attempt stop_if
assert_different <- function(
  r, img
){
  # We need to be sure these three paths are different
  stop_if(
    img$original_image == img$subplot
  )
  stop_if(
    img$original_image == r$sub_file
  )
  stop_if(
    r$sub_file == img$subplot
  )
}
ColinFay/hexmake documentation built on Feb. 2, 2023, 7:55 a.m.