Nothing
test_that("assert_shape and friends", {
expect_error(assert_shape("1"))
expect_error(assert_shape(NULL, null_ok = FALSE))
expect_error(assert_shape(c(NA, 1), unknown_batch = FALSE))
expect_integer(assert_shape(c(NA, 1), unknown_batch = TRUE))
expect_integer(assert_shape(c(NA, 1), unknown_batch = NULL))
expect_true(is.null(assert_shape(NULL, null_ok = TRUE)))
expect_integerish(assert_shape(c(1, 2)))
expect_integerish(assert_shape(c(NA, 2)))
expect_error(assert_shape(c(2, NA)), regexp = "Invalid")
expect_true(is.integer(assert_shape(c(1, 2), coerce = TRUE)))
expect_false(is.integer(assert_shape(c(1, 2), coerce = FALSE)))
expect_error(assert_shapes(list(c(1, 2), c(2, 3)), named = FALSE, unknown_batch = NULL), regexp = NA)
expect_error(assert_shapes(list(NULL), null_ok = TRUE), regexp = NA)
expect_error(assert_shapes(list(NULL), null_ok = FALSE))
expect_error(assert_shapes(list(c(1, 2), c(2, 3)), named = TRUE))
expect_error(assert_shapes(list(c(1, 2), c(2, 3))), regexp = NA)
expect_error(assert_shapes(list(c(4, 5), c(2, 3)), unknown_batch = TRUE))
expect_error(assert_shape(c(NA, 1, 2), len = 2))
# NULL is ok even when len is specified
expect_true(check_shape(NULL, null_ok = TRUE, len = 2))
})
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.