Running ‘testthat.R’ [7s/40s]
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/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(ctxR)
  ℹ CCTE's Terms of Service: <https://www.epa.gov/comptox-tools/computational-toxicology-and-exposure-apis>
  ℹ Please cite ctxR if you use it! Use `citation('ctxR')` for details.
  No config file or environment variable found: API access unlikely.
  > 
  > test_check("ctxR")
  Using request.R from "ctxR"
  [1] "Found 0 results. Try adjusting the search parameters."
  [1] "Found 0 results. Try adjusting the search parameters."
  [1] "Found 0 results. Try adjusting the search parameters."
  [1] "Found 0 results. Try adjusting the search parameters."
  Saving _problems/test-chemical-APIs-batch-133.R
  DTXCID30182
  Please input a correct value for `Projection`!
  [1] "Found 0 results. Try adjusting the search parameters."
  [1] "Found 0 results. Try adjusting the search parameters."
  Saving _problems/test-chemical-APIs-batch-296.R
  [1] "Found 0 results. Try adjusting the search parameters."
  [1] "Found 0 results. Try adjusting the search parameters."
  Saving _problems/test-chemical-APIs-188.R
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 504 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-chemical-APIs-batch.R:133:3'): Rate limit warnings ─────────────
  Error in `get_chemical_image_batch(DTXSID = c("DTXSID7020182"), API_key = ctx_key(), rate_limit = "0")`: Please install png package
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-chemical-APIs-batch.R:133:3
   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. └─ctxR::get_chemical_image_batch(...)
  ── Error ('test-chemical-APIs-batch.R:296:3'): Return data types ───────────────
  Error in `get_chemical_image_batch(DTXSID = c("DTXSID7020182"), API_key = ctx_key())`: Please install png package
  Backtrace:
      ▆
   1. ├─testthat::expect_type(...) at test-chemical-APIs-batch.R:296:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ctxR::get_chemical_image_batch(DTXSID = c("DTXSID7020182"), API_key = ctx_key())
  ── Error ('test-chemical-APIs.R:188:3'): Return data type ──────────────────────
  Error: Please install png package
  Backtrace:
      ▆
   1. ├─testthat::expect_type(...) at test-chemical-APIs.R:188:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ctxR::get_chemical_image(DTXSID = "DTXSID7020182", API_key = ctx_key())
   5.   └─httr::content(response, encoding = "UTF-8")
   6.     └─httr:::parse_auto(raw, type, encoding, ...)
   7.       └─httr (local) parser(x = content, type = type, encoding = encoding, ...)
   8.         └─httr:::need_package("png")
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 504 ]
  Error:
  ! Test failures.
  Execution halted