Running ‘testthat.R’ [1s/5s]
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(openscoring)
  > 
  > test_check("openscoring")
  v Remember to cite:
  
  Organisciak, P., Dumas, D., Acar, S., and de Chantal, P. L. (2024). Open Creativity Scoring \[Computer software\]. Denver, CO: University of Denver. https://openscoring.du.edu. and Organisciak, P., Acar, S., Dumas, D., & Berthiaume, K. (2023). Beyond semantic distance: Automated scoring of divergent thinking greatly improves with large language models. *Thinking Skills and Creativity*, 49, 101356. <https://doi.org/10.1016/j.tsc.2023.101356>
  v Remember to cite:
  
  Organisciak, P., Dumas, D., Acar, S., and de Chantal, P. L. (2024). Open Creativity Scoring \[Computer software\]. Denver, CO: University of Denver. https://openscoring.du.edu. and Organisciak, P., Acar, S., Dumas, D., & Berthiaume, K. (2023). Beyond semantic distance: Automated scoring of divergent thinking greatly improves with large language models. *Thinking Skills and Creativity*, 49, 101356. <https://doi.org/10.1016/j.tsc.2023.101356>
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-oscai.R:11:3'): chatgpt model works ──────────────────────────
  Expected `oscai(df, stimulus, response, model = "chatgpt")` to run without any errors.
  i Actually got a <rlang_error> with text:
    OpenScoring API returned status code 400
  ── Failure ('test-oscai.R:19:3'): davinci2 model works ─────────────────────────
  Expected `oscai(df, stimulus, response, model = "davinci2")` to run without any errors.
  i Actually got a <rlang_error> with text:
    OpenScoring API returned status code 400
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted