Running ‘testthat.R’ [12s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > # Import should never be attached
  > #library(import)
  > 
  > test_check("import")
  Loading required package: import
  The import package should not be attached.
  Use "colon syntax" instead, e.g. import::from, or import:::from.
  Error:
  ! Test failed with 1 failure and 1 success.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  Error:
  ! Test failed with 1 failure and 1 success.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  Error:
  ! Test failed with 1 failure and 1 success.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  Error:
  ! Test failed with 1 failure and 1 success.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  Error:
  ! Test failed with 1 failure and 1 success.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  Error:
  ! Test failed with 1 failure and 3 successes.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  Error:
  ! Test failed with 1 failure and 1 success.
  Backtrace:
      ▆
   1. └─testthat::test_that(...)
   2.   └─testthat:::test_code(code, parent.frame())
   3.     ├─withr (local) `<fn>`()
   4.     └─reporter$end_test(context = reporter$.context, test = test)
   5.       └─cli::cli_abort(...)
   6.         └─rlang::abort(...)
  Execution halted
  [ FAIL 7 | WARN 7 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_import.R:51:5'): test_basetemplate.R  works ──────────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ── Error: Basic scenario works ─────────────────────────────────────────────────
  Error: there is no package called ‘knitr’
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(import::from(knitr, normal_print))
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─import::from(knitr, normal_print)
   10.   └─base::tryCatch(...)
   11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.         └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ ── Error: Basic scenario works ─────────────────────────────────────────────────
  ✖ │ Error: there is no package called ‘knitr’
  ✖ │ Backtrace:
  ✖ │      ▆
  ✖ │   1. ├─testthat::expect_silent(import::from(knitr, normal_print))
  ✖ │   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
  ✖ │   3. │   ├─testthat (local) .capture(...)
  ✖ │   4. │   │ ├─withr::with_output_sink(...)
  ✖ │   5. │   │ │ └─base::force(code)
  ✖ │   6. │   │ ├─base::withCallingHandlers(...)
  ✖ │   7. │   │ └─base::withVisible(code)
  ✖ │   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  ✖ │   9. └─import::from(knitr, normal_print)
  ✖ │  10.   └─base::tryCatch(...)
  ✖ │  11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  ✖ │  12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  ✖ │  13.         └─value[[3L]](cond)
  ── Failure ('test_import.R:51:5'): test_from.R  works ──────────────────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ── Error: Imports from libraries work ──────────────────────────────────────────
  Error: there is no package called ‘knitr’
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(import::from(knitr, normal_print))
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─import::from(knitr, normal_print)
   10.   └─base::tryCatch(...)
   11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.         └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ ── Error: Imports from libraries work ──────────────────────────────────────────
  ✖ │ Error: there is no package called ‘knitr’
  ✖ │ Backtrace:
  ✖ │      ▆
  ✖ │   1. ├─testthat::expect_silent(import::from(knitr, normal_print))
  ✖ │   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
  ✖ │   3. │   ├─testthat (local) .capture(...)
  ✖ │   4. │   │ ├─withr::with_output_sink(...)
  ✖ │   5. │   │ │ └─base::force(code)
  ✖ │   6. │   │ ├─base::withCallingHandlers(...)
  ✖ │   7. │   │ └─base::withVisible(code)
  ✖ │   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  ✖ │   9. └─import::from(knitr, normal_print)
  ✖ │  10.   └─base::tryCatch(...)
  ✖ │  11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  ✖ │  12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  ✖ │  13.         └─value[[3L]](cond)
  ── Failure ('test_import.R:51:5'): test_hidden_objects.R  works ────────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  Test passed with 3 successes 🎊.
  Test passed with 3 successes 🥳.
  Test passed with 7 successes 🎊.
  Test passed with 3 successes 😸.
  Test passed with 8 successes 🎉.
  Test passed with 3 successes 🥳.
  ── Error: Import hidden (unexported) object ────────────────────────────────────
  Error: there is no package called ‘rmarkdown’
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(import:::from(rmarkdown, .packageName))
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─import:::from(rmarkdown, .packageName)
   10.   └─base::tryCatch(...)
   11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.         └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ Test passed with 3 successes 🎊.
  ✖ │ Test passed with 3 successes 🥳.
  ✖ │ Test passed with 7 successes 🎊.
  ✖ │ Test passed with 3 successes 😸.
  ✖ │ Test passed with 8 successes 🎉.
  ✖ │ Test passed with 3 successes 🥳.
  ✖ │ ── Error: Import hidden (unexported) object ────────────────────────────────────
  ✖ │ Error: there is no package called ‘rmarkdown’
  ✖ │ Backtrace:
  ✖ │      ▆
  ✖ │   1. ├─testthat::expect_silent(import:::from(rmarkdown, .packageName))
  ✖ │   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
  ✖ │   3. │   ├─testthat (local) .capture(...)
  ✖ │   4. │   │ ├─withr::with_output_sink(...)
  ✖ │   5. │   │ │ └─base::force(code)
  ✖ │   6. │   │ ├─base::withCallingHandlers(...)
  ✖ │   7. │   │ └─base::withVisible(code)
  ✖ │   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  ✖ │   9. └─import:::from(rmarkdown, .packageName)
  ... and 4 more.
  
  ── Failure ('test_import.R:51:5'): test_into_and_here.R  works ─────────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ── Error: Imports from libraries work with into() ──────────────────────────────
  Error: there is no package called ‘knitr’
  Backtrace:
      ▆
   1. └─import::from(.into = "custom_env", normal_print, .from = knitr)
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ ── Error: Imports from libraries work with into() ──────────────────────────────
  ✖ │ Error: there is no package called ‘knitr’
  ✖ │ Backtrace:
  ✖ │     ▆
  ✖ │  1. └─import::from(.into = "custom_env", normal_print, .from = knitr)
  ✖ │  2.   └─base::tryCatch(...)
  ✖ │  3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  ✖ │  4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  ✖ │  5.         └─value[[3L]](cond)
  ── Failure ('test_import.R:51:5'): test_into_param.R  works ────────────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ── Error: .into all combinations ───────────────────────────────────────────────
  Error: there is no package called ‘knitr’
  Backtrace:
       ▆
    1. ├─testthat (local) es(import::from(knitr, normal_print, .into = "a", .character_only = FALSE))
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─import::from(knitr, normal_print, .into = "a", .character_only = FALSE)
   10.   └─base::tryCatch(...)
   11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.         └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ ── Error: .into all combinations ───────────────────────────────────────────────
  ✖ │ Error: there is no package called ‘knitr’
  ✖ │ Backtrace:
  ✖ │      ▆
  ✖ │   1. ├─testthat (local) es(import::from(knitr, normal_print, .into = "a", .character_only = FALSE))
  ✖ │   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
  ✖ │   3. │   ├─testthat (local) .capture(...)
  ✖ │   4. │   │ ├─withr::with_output_sink(...)
  ✖ │   5. │   │ │ └─base::force(code)
  ✖ │   6. │   │ ├─base::withCallingHandlers(...)
  ✖ │   7. │   │ └─base::withVisible(code)
  ✖ │   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  ✖ │   9. └─import::from(knitr, normal_print, .into = "a", .character_only = FALSE)
  ✖ │  10.   └─base::tryCatch(...)
  ✖ │  11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  ✖ │  12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  ✖ │  13.         └─value[[3L]](cond)
  ── Failure ('test_import.R:51:5'): test_module_recursive.R  works ──────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  Test passed with 5 successes 😸.
  Test passed with 5 successes 🌈.
  ── Error: Recursive import::here() works with modules and packages ─────────────
  Error: Failed to import module_recursive_package_here.R due to the following error:
  there is no package called ‘knitr’
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...)
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─import::from(module_recursive_package_here.R, print_title_text)
   10.   └─base::tryCatch(...)
   11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   13.         └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ Test passed with 5 successes 😸.
  ✖ │ Test passed with 5 successes 🌈.
  ✖ │ ── Error: Recursive import::here() works with modules and packages ─────────────
  ✖ │ Error: Failed to import module_recursive_package_here.R due to the following error:
  ✖ │ there is no package called ‘knitr’
  ✖ │ Backtrace:
  ✖ │      ▆
  ✖ │   1. ├─testthat::expect_silent(...)
  ✖ │   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
  ✖ │   3. │   ├─testthat (local) .capture(...)
  ✖ │   4. │   │ ├─withr::with_output_sink(...)
  ✖ │   5. │   │ │ └─base::force(code)
  ✖ │   6. │   │ ├─base::withCallingHandlers(...)
  ✖ │   7. │   │ └─base::withVisible(code)
  ✖ │   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  ✖ │   9. └─import::from(module_recursive_package_here.R, print_title_text)
  ✖ │  10.   └─base::tryCatch(...)
  ✖ │  11.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  ✖ │  12.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  ... and 1 more.
  
  ── Failure ('test_import.R:51:5'): test_what.R  works ──────────────────────────
  Expected some element of [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ── Error: Listing imports from libraries works ─────────────────────────────────
  Error: there is no package called ‘knitr’
  Backtrace:
       ▆
    1. ├─testthat::expect_contains(import::what(knitr), "normal_print")
    2. │ └─testthat::quasi_label(enquo(object))
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─import::what(knitr)
    5.   └─base::eval(cl, envir = list2env(list(tmp_env = tmp_env), parent = parent.frame()))
    6.     └─base::eval(cl, envir = list2env(list(tmp_env = tmp_env), parent = parent.frame()))
    7.       └─import::from(.from = knitr, .all = TRUE, .into = tmp_env)
    8.         └─base::tryCatch(...)
    9.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.               └─value[[3L]](cond) to match regexp "Import tests completed successfully ...".
  Actual text:
  ✖ │ [1] "/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/import.Rcheck/tests/test_import"
  ✖ │ ── Error: Listing imports from libraries works ─────────────────────────────────
  ✖ │ Error: there is no package called ‘knitr’
  ✖ │ Backtrace:
  ✖ │      ▆
  ✖ │   1. ├─testthat::expect_contains(import::what(knitr), "normal_print")
  ✖ │   2. │ └─testthat::quasi_label(enquo(object))
  ✖ │   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
  ✖ │   4. └─import::what(knitr)
  ✖ │   5.   └─base::eval(cl, envir = list2env(list(tmp_env = tmp_env), parent = parent.frame()))
  ✖ │   6.     └─base::eval(cl, envir = list2env(list(tmp_env = tmp_env), parent = parent.frame()))
  ✖ │   7.       └─import::from(.from = knitr, .all = TRUE, .into = tmp_env)
  ✖ │   8.         └─base::tryCatch(...)
  ✖ │   9.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  ✖ │  10.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  ✖ │  11.               └─value[[3L]](cond)
  
  [ FAIL 7 | WARN 7 | SKIP 0 | PASS 3 ]
  Error:
  ! Test failures.
  Execution halted