Running ‘testthat.R’ [6s/7s]
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(ccdR)
  ℹ CCTE's Terms of Service: <https://www.epa.gov/comptox-tools/computational-toxicology-and-exposure-apis>
  ℹ Please cite ccdR if you use it! Use `citation('ccdR')` for details.
  ℹ ccdR will no longer be maintained and its functionality will be replaced by the package ctxR. Please refer to that package on CRAN at: <https://CRAN.R-project.org/package=ctxR>
  No config file or environment variable found: API access unlikely.
  > 
  > test_check("ccdR")
  Using request.R from "ccdR"
  DTXSID8031865
  Please input an API_key!
  1
  Please input an API_key!
  gvfdsr7
  promise already under evaluation: recursive default argument reference or earlier problems?
  gvfdsr7
  promise already under evaluation: recursive default argument reference or earlier problems?
  CH4
  Please input an API_key!
  CH4
  Please input an API_key!
  DTXCID30182
  Please input an API_key!
  DTXCID30182
  Please input an API_key!
  federal
  Please input an API_key!
  federal
  Please input an API_key!
  BIOSOLIDS2021
  Please input an API_key!
  BIOSOLIDS2021
  Please input an API_key!
  DTXSID7020182
  Please input an API_key!
  DTXSID7020182
  Please input an API_key!
  DTXSID7020182
  Please install png package
  DTXSID7020182
  Please install png package
  DTXSID7020182
  Please input an API_key!
  DTXSID7020182
  Please input an API_key!
  DTXCID30182
  Please input a correct value for `Projection`!
  There was an error!
  Start: NA
  End: NA
  Property: density
  missing value where TRUE/FALSE needed
  DTXSID7020182
  Please input an API_key!
  gvfdsr7
  promise already under evaluation: recursive default argument reference or earlier problems?
  DTXSID7020182
  Please input an API_key!
  There was an error!
  Start: -16.0313
  End: 16.0314
  Both start and end must be non-negative!
  CH4
  Please input an API_key!
  CH4
  Please input an API_key!
  DTXCID30182
  Please input an API_key!
  DTXCID30182
  Please input an API_key!
  federal
  Please input an API_key!
  federal
  Please input an API_key!
  BIOSOLIDS2021
  Please input an API_key!
  BIOSOLIDS2021
  Please input an API_key!
  DTXSID7020182
  Please input an API_key!
  DTXSID7020182
  Please input an API_key!
  DTXSID7020182
  Please install png package
  DTXCID30182
  Please install png package
  DTXSID7020182
  Please install png package
  DTXCID30182
  Please install png package
  DTXSID7020182
  Please input an API_key!
  DTXSID7020182
  Please input an API_key!
  Saving _problems/test-chemical-APIs-167.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 421 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-chemical-APIs.R:167:3'): Return data type ──────────────────────
  Error: Please install png package
  Backtrace:
      ▆
   1. ├─testthat::expect_type(...) at test-chemical-APIs.R:167:3
   2. │ └─testthat::quasi_label(enquo(object))
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─ccdR::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 1 | WARN 0 | SKIP 0 | PASS 421 ]
  Error:
  ! Test failures.
  Execution halted