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