Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("SqlRender")
  Loading required package: SqlRender
  Reading SQL from package folder: /data/gannet/ripley/R/packages/tests-devel/SqlRender.Rcheck/SqlRender/sql/sql_server/test.sql
  Writing R function to: /tmp/Rtmp6sv8LK/file534c4a71b848
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  ── 1. Error: (unknown) (@test-renderSql.R#158)  ────────────────────────────────
  no field, method or inner class called 'handled' 
  1: test_that("rendering: warning on parameter name mismatch", {
         expect_warning(render("SELECT * FROM @my_table", a_table = "x"))
     }) at testthat/test-renderSql.R:158
  2: test_code(desc, code, env = parent.frame())
  3: 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) {
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], 
         parentenv, handlers[[nh]])
  6: doTryCatch(return(expr), name, parentenv, handler)
  7: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  10: isTRUE(e$handled)
  11: e$handled
  12: `$.Throwable`(e, "handled")
  13: ._jobjRef_dollar(x[["jobj"]], name)
  14: stop(sprintf("no field, method or inner class called '%s' ", name))
  
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  Error in .jcall("java/lang/Class", "Ljava/lang/Class;", "forName", cl,  : 
    RcallMethod: cannot determine object class
  ── 2. Error: (unknown) (@test-translateSql.R#789)  ─────────────────────────────
  no field, method or inner class called 'handled' 
  1: test_that("translate: warning on temp table name that is too long", {
         expect_warning(translate("SELECT * FROM #abcdefghijklmnopqrstuvwxyz", "pdw"))
     }) at testthat/test-translateSql.R:789
  2: test_code(desc, code, env = parent.frame())
  3: 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) {
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], 
         parentenv, handlers[[nh]])
  6: doTryCatch(return(expr), name, parentenv, handler)
  7: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  10: isTRUE(e$handled)
  11: e$handled
  12: `$.Throwable`(e, "handled")
  13: ._jobjRef_dollar(x[["jobj"]], name)
  14: stop(sprintf("no field, method or inner class called '%s' ", name))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 196 SKIPPED: 0 WARNINGS: 0 FAILED: 2
  1. Error: (unknown) (@test-renderSql.R#158) 
  2. Error: (unknown) (@test-translateSql.R#789) 
  
  Error: testthat unit tests failed
  Execution halted