'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘RSQLite’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘RSQLite’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: 'RSQLite'
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘RSQLite’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Running examples in ‘Eunomia-Ex.R’ failed
The error most likely occurred in:

> ### Name: createCohorts
> ### Title: Construct cohorts
> ### Aliases: createCohorts
> 
> ### ** Examples
> 
> connectionDetails <- getEunomiaConnectionDetails()
> createCohorts(connectionDetails)
Connecting using SQLite driver
Warning in render(sql = parameterizedSql[1], warnOnMissingParameters = warnOnMissingParameters,  :
  Java 8 or higher is required, but older version was found. 
Warning in translate(sql = renderedSql, targetDialect = dbms, tempEmulationSchema = tempEmulationSchema) :
  Java 8 or higher is required, but older version was found. 
Warning in SqlRender::splitSql(sql) :
  Java 8 or higher is required, but older version was found. 
Warning in writeChar(report, fileConn, eos = NULL) :
  problem writing to connection
Error: Error executing SQL:
not an error
An error report has been created at  /home/ripley/R/packages/tests32/Eunomia.Rcheck/errorReportSql.txt
Backtrace:
    █
 1. └─Eunomia::createCohorts(connectionDetails)
 2.   └─DatabaseConnector::executeSql(...)
 3.     └─base::tryCatch(...)
 4.       └─base:::tryCatchList(expr, classes, parentenv, handlers)
 5.         └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
 6.           └─value[[3L]](cond)
 7.             └─DatabaseConnector:::.createErrorReport(...)
Execution halted
Running ‘testthat.R’ [9s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("Eunomia")
  Loading required package: Eunomia
  Loading required package: DatabaseConnector
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-basic.R:19:3): Query ────────────────────────────────────────────
  Error: Error executing SQL:
  not an error
  An error report has been created at  /home/ripley/R/packages/tests32/Eunomia.Rcheck/tests/testthat/errorReportSql.txt
  Backtrace:
      █
   1. └─DatabaseConnector::querySql(connection, "SELECT COUNT(*) FROM main.person;") test-basic.R:19:2
   2.   └─base::tryCatch(...)
   3.     └─base:::tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
   6.           └─DatabaseConnector:::.createErrorReport(...)
  ── Error (test-basic.R:24:3): Cohort construction ──────────────────────────────
  Error: Error executing SQL:
  not an error
  An error report has been created at  /home/ripley/R/packages/tests32/Eunomia.Rcheck/tests/testthat/errorReportSql.txt
  Backtrace:
      █
   1. └─Eunomia::createCohorts(connectionDetails) test-basic.R:24:2
   2.   └─DatabaseConnector::executeSql(...)
   3.     └─base::tryCatch(...)
   4.       └─base:::tryCatchList(expr, classes, parentenv, handlers)
   5.         └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6.           └─value[[3L]](cond)
   7.             └─DatabaseConnector:::.createErrorReport(...)
  
  [ FAIL 2 | WARN 5 | SKIP 0 | PASS 3 ]
  Error: Test failures
  Execution halted
Found the following files/directories:
  ‘errorReportSql.txt’
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘RSQLite’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘RSQLite’
  All declared Imports should be used.
'LazyData' is specified without a 'data' directory
'LazyData' is specified without a 'data' directory
Namespace in Imports field not imported from: ‘RSQLite’
  All declared Imports should be used.