Nothing
library(testthat)
library(checkmate)
library(tibble)
context("getColTypes")
test_that("get column types", {
input <- tibble(c = "character",
i = as.integer(1.1),
n = as.numeric(1),
d = as.double(1.11111111111111),
l = TRUE,
D = Sys.Date())
out <- getColTypes(input = input)
expect_true(out == "cinnlD")
})
test_that("Error if arguments have wrong value", {
expect_error(object = getColTypes(input = "bla"))
})
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.