Nothing
library(checkargs)
context("isPositiveIntegerOrNaVector")
test_that("isPositiveIntegerOrNaVector works for all arguments", {
expect_identical(isPositiveIntegerOrNaVector(NULL, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(TRUE, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(FALSE, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(NA, stopIfNot = FALSE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(0, stopIfNot = FALSE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(-1, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(-0.1, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(0.1, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(1, stopIfNot = FALSE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(NaN, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(-Inf, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(Inf, stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector("", stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector("X", stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(TRUE, FALSE), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(FALSE, TRUE), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(NA, NA), stopIfNot = FALSE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(c(0, 0), stopIfNot = FALSE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(c(-1, -2), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(-0.1, -0.2), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(0.1, 0.2), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(1, 2), stopIfNot = FALSE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(c(NaN, NaN), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(-Inf, -Inf), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c(Inf, Inf), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c("", "X"), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_identical(isPositiveIntegerOrNaVector(c("X", "Y"), stopIfNot = FALSE, message = NULL, argumentName = NULL), FALSE)
expect_error(isPositiveIntegerOrNaVector(NULL, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(TRUE, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(FALSE, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_identical(isPositiveIntegerOrNaVector(NA, stopIfNot = TRUE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(0, stopIfNot = TRUE, message = NULL, argumentName = NULL), TRUE)
expect_error(isPositiveIntegerOrNaVector(-1, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(-0.1, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(0.1, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_identical(isPositiveIntegerOrNaVector(1, stopIfNot = TRUE, message = NULL, argumentName = NULL), TRUE)
expect_error(isPositiveIntegerOrNaVector(NaN, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(-Inf, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(Inf, stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector("", stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector("X", stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c(TRUE, FALSE), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c(FALSE, TRUE), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_identical(isPositiveIntegerOrNaVector(c(NA, NA), stopIfNot = TRUE, message = NULL, argumentName = NULL), TRUE)
expect_identical(isPositiveIntegerOrNaVector(c(0, 0), stopIfNot = TRUE, message = NULL, argumentName = NULL), TRUE)
expect_error(isPositiveIntegerOrNaVector(c(-1, -2), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c(-0.1, -0.2), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c(0.1, 0.2), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_identical(isPositiveIntegerOrNaVector(c(1, 2), stopIfNot = TRUE, message = NULL, argumentName = NULL), TRUE)
expect_error(isPositiveIntegerOrNaVector(c(NaN, NaN), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c(-Inf, -Inf), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c(Inf, Inf), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c("", "X"), stopIfNot = TRUE, message = NULL, argumentName = NULL))
expect_error(isPositiveIntegerOrNaVector(c("X", "Y"), stopIfNot = TRUE, message = NULL, argumentName = NULL))
})
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.