Nothing
#' Check that an argument is a vector of type double
#'
#' @templateVar fn Double
#' @template x
#' @template na-handling
#' @inheritParams checkVector
#' @template bounds
#' @template sorted
#' @param finite [\code{logical(1)}]\cr
#' Check for only finite values? Default is \code{FALSE}.
#' @template null.ok
#' @template typed.missing
#' @template checker
#' @family basetypes
#' @useDynLib checkmate c_check_double
#' @export
#' @examples
#' testDouble(1)
#' testDouble(1L)
#' testDouble(1, min.len = 1, lower = 0)
checkDouble = function(x, lower = -Inf, upper = Inf, finite = FALSE, any.missing = TRUE, all.missing = TRUE, len = NULL, min.len = NULL, max.len = NULL, unique = FALSE, sorted = FALSE, names = NULL, typed.missing = FALSE, null.ok = FALSE) {
.Call(c_check_double, x, lower, upper, finite, any.missing, all.missing, len, min.len, max.len, unique, sorted, names, typed.missing, null.ok)
}
#' @export
#' @rdname checkDouble
check_double = checkDouble
#' @export
#' @include makeAssertion.R
#' @template assert
#' @rdname checkDouble
assertDouble = makeAssertionFunction(checkDouble, c.fun = "c_check_double", use.namespace = FALSE)
#' @export
#' @rdname checkDouble
assert_double = assertDouble
#' @export
#' @include makeTest.R
#' @rdname checkDouble
testDouble = makeTestFunction(checkDouble, c.fun = "c_check_double")
#' @export
#' @rdname checkDouble
test_double = testDouble
#' @export
#' @include makeExpectation.R
#' @template expect
#' @rdname checkDouble
expect_double = makeExpectationFunction(checkDouble, c.fun = "c_check_double", use.namespace = FALSE)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.