Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(dplyr.teradata)
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Loading required package: dbplyr
  
  Attaching package: 'dbplyr'
  
  The following objects are masked from 'package:dplyr':
  
      ident, sql
  
  > 
  > test_check("dplyr.teradata")
  -- 1. Error: custom scalar translated correctly (@test-translate-teradata.R#9)  
  no applicable method for 'sql_translate_env' applied to an object of class "NULL"
  1: expect_equal(trans(case_when(x == 1L ~ 1L, x == 2L ~ 2L, TRUE ~ 3L)), sql("CASE WHEN \"x\" = 1 THEN 1 WHEN \"x\" = 2 THEN 2 ELSE 3 END")) at testthat/test-translate-teradata.R:9
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: trans(case_when(x == 1L ~ 1L, x == 2L ~ 2L, TRUE ~ 3L))
  5: translate_sql(!!enquo(x), con = simulate_teradata()) at testthat/test-translate-teradata.R:6
  6: translate_sql_(quos(...), con = con, vars_group = vars_group, vars_order = vars_order, 
         vars_frame = vars_frame, window = window)
  7: lapply(dots, function(x) {
         if (is_null(get_expr(x))) {
             NULL
         }
         else if (is_atomic(get_expr(x))) {
             escape(get_expr(x), con = con)
         }
         else {
             overscope <- sql_overscope(x, variant, con = con, window = window)
             on.exit(overscope_clean(overscope))
             escape(overscope_eval_next(overscope, x), con = con)
         }
     })
  8: FUN(X[[i]], ...)
  9: escape(overscope_eval_next(overscope, x), con = con)
  10: overscope_eval_next(overscope, x)
  11: case_when(x == 1L ~ 1L, x == 2L ~ 2L, TRUE ~ 3L)
  12: translate_sql_(list(f[[2]]))
  13: sql_translate_env(con)
  
  == testthat results  ===========================================================
  OK: 0 SKIPPED: 0 WARNINGS: 0 FAILED: 1
  1. Error: custom scalar translated correctly (@test-translate-teradata.R#9) 
  
  Error: testthat unit tests failed
  Execution halted