Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lazysql)
  > 
  > test_check("lazysql")
  ── 1. Error: date_between works as expected (@test_date_between.R#8)  ──────────
  STRING_ELT() can only be applied to a 'character vector', not a 'symbol'
  1: expect_identical(date_between(date_column, date1), "STD_1 between to_date('2016-02-22', 'yyyy-mm-dd') and to_date('2016-02-22', 'yyyy-mm-dd')") at testthat/test_date_between.R:8
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: date_between(date_column, date1)
  5: checkmate::assert_string(column_name, na.ok = FALSE, min.chars = 1L, pattern = valid_identifier_regex())
  6: checkString(x, na.ok, min.chars, pattern, fixed, ignore.case, null.ok)
  7: .Call(c_check_string, x, na.ok, min.chars, null.ok) %and% checkCharacterPattern(x, 
         pattern, fixed, ignore.case)
  8: checkCharacterPattern(x, pattern, fixed, ignore.case)
  9: qassert(pattern, "S1")
  
  
   *** caught segfault ***
  address 54, cause 'memory not mapped'
  
  Traceback:
   1: qassert(pattern, "S1")
   2: checkCharacterPattern(x, pattern, fixed, ignore.case)
   3: .Call(c_check_string, x, na.ok, min.chars, null.ok) %and% checkCharacterPattern(x,     pattern, fixed, ignore.case)
   4: checkString(x, na.ok, min.chars, pattern, fixed, ignore.case,     null.ok)
   5: checkmate::assert_string(column_name, na.ok = FALSE, min.chars = 1L,     pattern = valid_identifier_regex())
   6: date_between(date_column, as.Date(NA))
   7: eval_bare(get_expr(quo), get_env(quo))
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch({    code    NULL}, error = function(e) e)
  12: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  13: quasi_capture(enquo(object), capture_error, label = label)
  14: expect_error(date_between(date_column, as.Date(NA)))
  15: eval(code, test_env)
  16: eval(code, test_env)
  17: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  18: doTryCatch(return(expr), name, parentenv, handler)
  19: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  20: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  23: tryCatchList(expr, classes, parentenv, handlers)
  24: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  25: test_code(desc, code, env = parent.frame())
  26: test_that("date_between checks dates", {    date1 <- as.Date("2016-02-22")    date_column <- "STD"    expect_error(date_between(date_column, as.POSIXct(date1)))    expect_error(date_between(date_column, as.Date(NA)))    expect_error(date_between(date_column, date1 + 1:11))    expect_error(date_between(date_column, date1[0]))    expect_error(date_between(date_column, NULL))})
  27: eval(code, test_env)
  28: eval(code, test_env)
  29: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  30: doTryCatch(return(expr), name, parentenv, handler)
  31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  32: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  33: doTryCatch(return(expr), name, parentenv, handler)
  34: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  35: tryCatchList(expr, classes, parentenv, handlers)
  36: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  37: test_code(NULL, exprs, env)
  38: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  39: force(code)
  40: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  41: FUN(X[[i]], ...)
  42: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  43: force(code)
  44: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  45: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  46: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  47: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  48: test_check("lazysql")
  An irrecoverable exception occurred. R is aborting now ...