Running ‘testthat.R’ [9s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("MonetDBLite")
  Loading required package: MonetDBLite
  
  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
  
  1. Error: we can connect (@test_03_dplyr.R#14) ---------------------------------
  The dbplyr package is required to communicate with database backends.
  1: src_sqlite(tempfile(), create = T) at testthat/test_03_dplyr.R:14
  2: check_dbplyr()
  3: check_pkg("dbplyr", "communicate with database backends", install = FALSE)
  4: glubort(NULL, "The {name} package is required to {reason}.", if (install) "\nPlease install it with `install.packages(\"{name}\")`")
  5: .abort(text)
  
  2. Error: dplyr copy_to() (@test_03_dplyr.R#24) --------------------------------
  no applicable method for 'copy_to' applied to an object of class "logical"
  1: copy_to(my_db_sqlite, flights, temporary = FALSE, indexes = list(c("year", "month", 
         "day"), "carrier", "tailnum")) at testthat/test_03_dplyr.R:24
  
  3. Error: dplyr tbl( sql() ) (@test_03_dplyr.R#35) -----------------------------
  no applicable method for 'tbl' applied to an object of class "logical"
  1: expect_equal(collect(tbl(my_db_sqlite, sql("SELECT * FROM flights"))), collect(tbl(my_db_monetdb, 
         sql("SELECT * FROM flights")))) at testthat/test_03_dplyr.R:35
  2: compare(object, expected, ...)
  3: collect(tbl(my_db_sqlite, sql("SELECT * FROM flights")))
  4: tbl(my_db_sqlite, sql("SELECT * FROM flights"))
  
  4. Error: dplyr select() (@test_03_dplyr.R#43) ---------------------------------
  no applicable method for 'select_' applied to an object of class "logical"
  1: expect_equal(collect(select(flights_sqlite, year:day, dep_delay, arr_delay)), collect(select(flights_monetdb, 
         year:day, dep_delay, arr_delay))) at testthat/test_03_dplyr.R:43
  2: compare(object, expected, ...)
  3: collect(select(flights_sqlite, year:day, dep_delay, arr_delay))
  4: select(flights_sqlite, year:day, dep_delay, arr_delay)
  5: select.default(flights_sqlite, year:day, dep_delay, arr_delay)
  6: select_(.data, .dots = compat_as_lazy_dots(...))
  
  5. Error: dplyr filter() (@test_03_dplyr.R#51) ---------------------------------
  no applicable method for 'filter_' applied to an object of class "logical"
  1: expect_equal(collect(filter(flights_sqlite, dep_delay > 240)), collect(filter(flights_monetdb, 
         dep_delay > 240))) at testthat/test_03_dplyr.R:51
  2: compare(object, expected, ...)
  3: collect(filter(flights_sqlite, dep_delay > 240))
  4: filter(flights_sqlite, dep_delay > 240)
  5: filter.default(flights_sqlite, dep_delay > 240)
  6: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  6. Error: dplyr arrange() (@test_03_dplyr.R#59) --------------------------------
  no applicable method for 'arrange_' applied to an object of class "logical"
  1: expect_equal(collect(arrange(flights_sqlite, year, month, day, dep_time)), collect(arrange(flights_monetdb, 
         year, month, day, dep_time))) at testthat/test_03_dplyr.R:59
  2: compare(object, expected, ...)
  3: collect(arrange(flights_sqlite, year, month, day, dep_time))
  4: arrange(flights_sqlite, year, month, day, dep_time)
  5: arrange.default(flights_sqlite, year, month, day, dep_time)
  6: arrange_(.data, .dots = compat_as_lazy_dots(...))
  
  7. Error: dplyr mutate() (@test_03_dplyr.R#67) ---------------------------------
  no applicable method for 'mutate_' applied to an object of class "logical"
  1: expect_equal(collect(mutate(flights_sqlite, speed = air_time/distance)), collect(mutate(flights_monetdb, 
         speed = air_time/distance))) at testthat/test_03_dplyr.R:67
  2: compare(object, expected, ...)
  3: collect(mutate(flights_sqlite, speed = air_time/distance))
  4: mutate(flights_sqlite, speed = air_time/distance)
  5: mutate.default(flights_sqlite, speed = air_time/distance)
  6: mutate_(.data, .dots = compat_as_lazy_dots(...))
  
  8. Error: dplyr summarise() (@test_03_dplyr.R#75) ------------------------------
  no applicable method for 'summarise_' applied to an object of class "logical"
  1: expect_equal(data.frame(summarise(flights_sqlite, delay = mean(dep_time))), data.frame(summarise(flights_monetdb, 
         delay = mean(dep_time)))) at testthat/test_03_dplyr.R:75
  2: compare(object, expected, ...)
  3: data.frame(summarise(flights_sqlite, delay = mean(dep_time)))
  4: summarise(flights_sqlite, delay = mean(dep_time))
  5: summarise.default(flights_sqlite, delay = mean(dep_time))
  6: summarise_(.data, .dots = compat_as_lazy_dots(...))
  
  9. Error: dplyr multiple objects (@test_03_dplyr.R#84) -------------------------
  no applicable method for 'filter_' applied to an object of class "logical"
  1: expect_equal(collect(c1_sqlite <- filter(flights_sqlite, year == 2013, month == 1, 
         day == 1)), collect(c1_monetdb <- filter(flights_monetdb, year == 2013, month == 
         1, day == 1))) at testthat/test_03_dplyr.R:84
  2: compare(object, expected, ...)
  3: collect(c1_sqlite <- filter(flights_sqlite, year == 2013, month == 1, day == 1))
  4: filter(flights_sqlite, year == 2013, month == 1, day == 1)
  5: filter.default(flights_sqlite, year == 2013, month == 1, day == 1)
  6: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  10. Error: dplyr group_by (@test_03_dplyr.R#120) -------------------------------
  no applicable method for 'group_by_' applied to an object of class "logical"
  1: expect_equal(collect(by_tailnum_sqlite <- group_by(flights_sqlite, tailnum)), collect(by_tailnum_monetdb <- group_by(flights_monetdb, 
         tailnum))) at testthat/test_03_dplyr.R:120
  2: compare(object, expected, ...)
  3: collect(by_tailnum_sqlite <- group_by(flights_sqlite, tailnum))
  4: group_by(flights_sqlite, tailnum)
  5: group_by.default(flights_sqlite, tailnum)
  6: group_by_(.data, .dots = compat_as_lazy_dots(...), add = add)
  
  11. Error: shutdown (@test_03_dplyr.R#127) -------------------------------------
  $ operator is invalid for atomic vectors
  1: DBI::dbDisconnect(my_db_monetdb$con, shutdown = TRUE) at testthat/test_03_dplyr.R:127
  
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  [1] "E"
  [1] "H"
  [1] "M"
  testthat results ================================================================
  OK: 159 SKIPPED: 0 FAILED: 11
  1. Error: we can connect (@test_03_dplyr.R#14) 
  2. Error: dplyr copy_to() (@test_03_dplyr.R#24) 
  3. Error: dplyr tbl( sql() ) (@test_03_dplyr.R#35) 
  4. Error: dplyr select() (@test_03_dplyr.R#43) 
  5. Error: dplyr filter() (@test_03_dplyr.R#51) 
  6. Error: dplyr arrange() (@test_03_dplyr.R#59) 
  7. Error: dplyr mutate() (@test_03_dplyr.R#67) 
  8. Error: dplyr summarise() (@test_03_dplyr.R#75) 
  9. Error: dplyr multiple objects (@test_03_dplyr.R#84) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted