Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(containr)
  > 
  > test_check("containr")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 20 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-generate-dockerfile-file-args.R:7:5'): NULL file args are accepted (public API) ──
  `generate_dockerfile(...)` threw an unexpected error.
  Message: httr::status_code(res) == 200 is not TRUE
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-generate-dockerfile-file-args.R:7:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─containr::generate_dockerfile(...)
    8.   └─containr:::r_ver_exists(resolved_version)
    9.     └─containr:::get_r_ver_tags(r_mode = r_mode, verbose = verbose)
   10.       └─base::stopifnot(httr::status_code(res) == 200)
  ── Failure ('test-generate-dockerfile-file-args.R:26:5'): Existing files are accepted and Dockerfile is written ──
  `generate_dockerfile(...)` threw an unexpected error.
  Message: httr::status_code(res) == 200 is not TRUE
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-generate-dockerfile-file-args.R:26:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─containr::generate_dockerfile(...)
    8.   └─containr:::r_ver_exists(resolved_version)
    9.     └─containr:::get_r_ver_tags(r_mode = r_mode, verbose = verbose)
   10.       └─base::stopifnot(httr::status_code(res) == 200)
  ── Failure ('test-generate-dockerfile-file-args.R:44:5'): Dockerfile is written to specified output directory ──
  `generate_dockerfile(...)` threw an unexpected error.
  Message: httr::status_code(res) == 200 is not TRUE
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-generate-dockerfile-file-args.R:44:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─containr::generate_dockerfile(...)
    8.   └─containr:::r_ver_exists(resolved_version)
    9.     └─containr:::get_r_ver_tags(r_mode = r_mode, verbose = verbose)
   10.       └─base::stopifnot(httr::status_code(res) == 200)
  ── Failure ('test-generate-dockerfile-file-args.R:55:5'): Dockerfile is written to specified output directory ──
  file.exists(dockerfile_path) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 20 ]
  Error: Test failures
  Execution halted