Running 'testthat.R' [19s/21s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(makepipe)
  > 
  > test_check("makepipe")
  v Targets are up to date
  v Targets are up to date
  v Targets are up to date
  
  x Something went wrong
  
  v Targets are up to date
  == Failed tests ================================================================
  -- Failure (test-Pipeline.R:41:3): targets rebuilt if older than source --------
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:48:3): targets rebuilt if older than dependency ----
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:55:3): targets rebuilt if older than dependency and source --
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:62:3): out-of-dateness is passed along -------------
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:64:3): out-of-dateness is passed along -------------
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:90:3): targets rebuilt if older than dependency ----
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:101:3): out-of-dateness is passed along ------------
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:107:3): out-of-dateness is passed along ------------
  `target` should be out of date but isn't
  -- Failure (test-Pipeline.R:121:3): out-of-dateness is kept up-to-date ---------
  `target` should be out of date but isn't
  -- Failure (test-make.R:39:3): targets rebuilt if older than source ------------
  `eval(expr)` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:39:2
   2.   +-testthat::expect_condition(...) test-make.R:19:2
   3.   | \-testthat:::expect_condition_matching(...)
   4.   |   \-testthat:::quasi_capture(...)
   5.   |     +-testthat:::.capture(...)
   6.   |     | \-base::withCallingHandlers(...)
   7.   |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   8.   \-testthat::expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")
   9.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:39:3): targets rebuilt if older than source ------------
  `expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:39:2
   2.   \-testthat::expect_condition(...) test-make.R:19:2
   3.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:44:3): targets rebuilt if older than dependency --------
  `eval(expr)` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:44:2
   2.   +-testthat::expect_condition(...) test-make.R:19:2
   3.   | \-testthat:::expect_condition_matching(...)
   4.   |   \-testthat:::quasi_capture(...)
   5.   |     +-testthat:::.capture(...)
   6.   |     | \-base::withCallingHandlers(...)
   7.   |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   8.   \-testthat::expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")
   9.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:44:3): targets rebuilt if older than dependency --------
  `expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:44:2
   2.   \-testthat::expect_condition(...) test-make.R:19:2
   3.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:49:3): targets rebuilt if older than dependency and source --
  `eval(expr)` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:49:2
   2.   +-testthat::expect_condition(...) test-make.R:19:2
   3.   | \-testthat:::expect_condition_matching(...)
   4.   |   \-testthat:::quasi_capture(...)
   5.   |     +-testthat:::.capture(...)
   6.   |     | \-base::withCallingHandlers(...)
   7.   |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   8.   \-testthat::expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")
   9.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:49:3): targets rebuilt if older than dependency and source --
  `expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:49:2
   2.   \-testthat::expect_condition(...) test-make.R:19:2
   3.     \-testthat:::expect_condition_matching(...)
  -- Error (test-make.R:53:3): targets rebuilt if non-existent -------------------
  Error in `file(file, ifelse(append, "a", "w"))`: cannot open the connection
  Backtrace:
       x
    1. \-makepipe:::expect_outofdate(...) test-make.R:53:2
    2.   +-testthat::expect_condition(...) test-make.R:19:2
    3.   | \-testthat:::expect_condition_matching(...)
    4.   |   \-testthat:::quasi_capture(...)
    5.   |     +-testthat:::.capture(...)
    6.   |     | \-base::withCallingHandlers(...)
    7.   |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8.   +-testthat::expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")
    9.   | \-testthat:::expect_condition_matching(...)
   10.   |   \-testthat:::quasi_capture(...)
   11.   |     +-testthat:::.capture(...)
   12.   |     | \-base::withCallingHandlers(...)
   13.   |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   14.   +-base::eval(expr)
   15.   | \-base::eval(expr)
   16.   \-makepipe::make_with_source(source1, "filedoesntexist.Rds", dependency)
   17.     \-base::source(source, local = envir, ...)
   18.       +-base::withVisible(eval(ei, envir))
   19.       \-base::eval(ei, envir)
   20.         \-base::eval(ei, envir)
   21.           +-utils::write.csv(...)
   22.           | \-base::eval.parent(Call)
   23.           |   \-base::eval(expr, p)
   24.           |     \-base::eval(expr, p)
   25.           \-utils::write.table(...)
   26.             \-base::file(file, ifelse(append, "a", "w"))
  -- Failure (test-make.R:78:3): targets rebuilt if older than dependency --------
  `eval(expr)` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:78:2
   2.   +-testthat::expect_condition(...) test-make.R:19:2
   3.   | \-testthat:::expect_condition_matching(...)
   4.   |   \-testthat:::quasi_capture(...)
   5.   |     +-testthat:::.capture(...)
   6.   |     | \-base::withCallingHandlers(...)
   7.   |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   8.   \-testthat::expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")
   9.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:78:3): targets rebuilt if older than dependency --------
  `expect_condition(eval(expr), regexp = "Targets are out of date. Updating...")` did not throw the expected condition.
  Backtrace:
      x
   1. \-makepipe:::expect_outofdate(...) test-make.R:78:2
   2.   \-testthat::expect_condition(...) test-make.R:19:2
   3.     \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:166:3): by default recipe eval'd in fresh env whose parent is calling env --
  `make_with_recipe(...)` did not throw the expected error.
  Backtrace:
      x
   1. \-testthat::expect_error(...) test-make.R:166:2
   2.   \-testthat:::expect_condition_matching(...)
  -- Failure (test-make.R:211:3): recipe evaluated in supplied environment -------
  my_env$.res (`actual`) not equal to 1000 (`expected`).
  
  `actual` is NULL
  `expected` is a double vector (1000)
  -- Failure (test-make.R:212:3): recipe evaluated in supplied environment -------
  x$result (`actual`) not equal to 1000 (`expected`).
  
  `actual` is NULL
  `expected` is a double vector (1000)
  -- Failure (test-make.R:224:3): make_with_recipe returns what's returned -------
  x$result (`actual`) not equal to 2 (`expected`).
  
  `actual` is NULL
  `expected` is a double vector (2)
  -- Failure (test-make.R:233:3): make_with_recipe returns what's returned -------
  x$result (`actual`) not equal to 5 (`expected`).
  
  `actual` is NULL
  `expected` is a double vector (5)
  -- Failure (test-make.R:240:3): make_with_source returns what's registered -----
  res$result$five (`actual`) not equal to 5 (`expected`).
  
  `actual` is NULL
  `expected` is a double vector (5)
  -- Failure (test-make.R:254:3): make_with_recipe result prints nicely ----------
  `print\(x\)` does not match "* Executed: TRUE".
  Actual value: "# makepipe segment\\n\* Recipe: \\n\\n\{\\n    res <- 1 \+ 1\\n    res\\n\}\\n\\n\* Targets: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars\.csv'\\n\* File dependencies: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars_src\.csv'\\n\* Executed: FALSE\\n\* Environment: 0x4b702b0"
  Backtrace:
      x
   1. \-testthat::expect_output(print(x), regexp = "* Executed: TRUE") test-make.R:254:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-make.R:255:3): make_with_recipe result prints nicely ----------
  `print\(x\)` does not match "* Result: 1 object".
  Actual value: "# makepipe segment\\n\* Recipe: \\n\\n\{\\n    res <- 1 \+ 1\\n    res\\n\}\\n\\n\* Targets: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars\.csv'\\n\* File dependencies: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars_src\.csv'\\n\* Executed: FALSE\\n\* Environment: 0x4b702b0"
  Backtrace:
      x
   1. \-testthat::expect_output(print(x), regexp = "* Result: 1 object") test-make.R:255:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-make.R:276:3): make_with_source result prints nicely ----------
  `print\(x\)` does not match "* Executed: TRUE".
  Actual value: "# makepipe segment\\n\* Source: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars1\.R'\\n\* Targets: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars\.csv'\\n\* File dependencies: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars_src\.csv'\\n\* Executed: FALSE\\n\* Environment: 0x546b410"
  Backtrace:
      x
   1. \-testthat::expect_output(print(x), regexp = "* Executed: TRUE") test-make.R:276:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-make.R:277:3): make_with_source result prints nicely ----------
  `print\(x\)` does not match "* Result: 1 object".
  Actual value: "# makepipe segment\\n\* Source: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars1\.R'\\n\* Targets: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars\.csv'\\n\* File dependencies: '/home/hornik/tmp/R\.check/r-devel-clang/Work/build/Packages/makepipe/tests/mtcars_src\.csv'\\n\* Executed: FALSE\\n\* Environment: 0x546b410"
  Backtrace:
      x
   1. \-testthat::expect_output(print(x), regexp = "* Result: 1 object") test-make.R:277:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  
  [ FAIL 28 | WARN 1 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted