x is single value bounded between limits

assert_single_bounded(
  x,
  left = 0,
  right = 1,
  inclusive_left = TRUE,
  inclusive_right = TRUE,
  name = deparse(substitute(x))
)

Arguments

x

value to check if single value bounded between limits

left

left bound

right

right bound

inclusive_left

True/False is left bound inclusive?

inclusive_right

True/False is left bound inclusive?

name

Name

Details

x is single value bounded between limits