Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > test_check("clustermq")
  Loading required package: clustermq
  * Option 'clustermq.scheduler' not set, defaulting to 'LOCAL'
  --- see: https://mschubert.github.io/clustermq/articles/userguide.html#configuration
  [ FAIL 16 | WARN 0 | SKIP 22 | PASS 27 ]
  
  == Skipped tests ===============================================================
  * On CRAN (6)
  * On Windows (16)
  
  == Failed tests ================================================================
  -- Error ('test-2-work_chunk.r:11'): data types and arg names ------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-2-work_chunk.r:11:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-clustermq:::work_chunk(df, fx)
   5.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   6.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-2-work_chunk.r:24'): check call classes ------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-2-work_chunk.r:24:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-clustermq:::work_chunk(df2, fx)
   5.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   6.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-2-work_chunk.r:32'): do not unlist matrix in data.frame --------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. +-testthat::expect_equal(work_chunk(df2, fx)$result$"1", list(expr = elm)) at test-2-work_chunk.r:32:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-clustermq:::work_chunk(df2, fx)
   5.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   6.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-2-work_chunk.r:44'): warning and error handling ----------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-clustermq:::work_chunk(data.frame(a = 1:6), fx) at test-2-work_chunk.r:44:4
   2.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   3.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-2-work_chunk.r:59'): const args --------------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-clustermq:::work_chunk(df, fx, const = list(x = 5)) at test-2-work_chunk.r:59:4
   2.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   3.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-2-work_chunk.r:67'): seed reproducibility ----------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-2-work_chunk.r:67:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-clustermq:::work_chunk(df[1:2, ], fx, common_seed = 123)
   5.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   6.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-2-work_chunk.r:79'): env separation ----------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-2-work_chunk.r:79:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-clustermq:::work_chunk(df2, fx)
   5.   +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   6.   \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-5-qsys_impl.r:11'): local, explicit ----------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-clustermq::Q(fx, x = 1:3, workers = w, timeout = 3L) at test-5-qsys_impl.r:11:4
   2.   \-clustermq::Q_rows(...)
   3.     \-clustermq:::work_chunk(...)
   4.       +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   5.       \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-5-qsys_impl.r:19'): local, n_jobs=0 ----------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-clustermq::Q(fx, x = 1:3, n_jobs = 0, timeout = 3L) at test-5-qsys_impl.r:19:4
   2.   \-clustermq::Q_rows(...)
   3.     \-clustermq:::work_chunk(...)
   4.       +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   5.       \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:13'): simple foreach registration works ------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(i = 1:3) %dopar% sqrt(i) at test-7-foreach.r:13:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, export = `<named list>`)
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:21'): .export objects are exported -----------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(x = 1:3, .export = "y") %dopar% ... at test-7-foreach.r:21:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, export = `<named list>`)
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:30'): .packages are loaded -------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(i = "a string", .packages = "tools") %dopar% ... at test-7-foreach.r:30:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, pkgs = "tools")
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:36'): .combine is respected ------------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(i = 1:3, .combine = c) %dopar% sqrt(i) at test-7-foreach.r:36:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, export = `<named list>`)
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:55'): no matrix unlisting (#143) -------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(i = 1:3) %dopar% fx(i) at test-7-foreach.r:55:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, export = `<named list>`)
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:63'): automatic export in foreach ------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(x = 1:3) %dopar% ... at test-7-foreach.r:63:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, export = `<named list>`)
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  -- Error ('test-7-foreach.r:71'): NULL objects are exported --------------------
  Error in `pmap_("list", .l, .f, ..., .progress = .progress)`: could not find function "pmap_"
  Backtrace:
      x
   1. \-foreach(i = 1) %dopar% fx(y) at test-7-foreach.r:71:4
   2.   \-e$fun(obj, substitute(ex), parent.frame(), e$data)
   3.     +-base::do.call(Q_rows, c(list(df = args_df, fun = fun), data))
   4.     \-clustermq (local) `<fn>`(df = `<list[,1]>`, fun = `<fn>`, n_jobs = 0, export = `<named list>`)
   5.       \-clustermq:::work_chunk(...)
   6.         +-stats::setNames(purrr_lookup[[rettype]](df, fwrap), df$` id `)
   7.         \-purrr_lookup[[rettype]](df, fwrap)
  
  [ FAIL 16 | WARN 0 | SKIP 22 | PASS 27 ]
  Error: Test failures
  Execution halted