Running ‘testthat.R’ [7s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(codemetar)
  > 
  > skip_if_offline <- function() skip_if_not(pingr::is_online())
  > test_check("codemetar")
  ── 1. Error: no direct link to README (@test-codemeta_description.R#20)  ───────
  HTTP error 502.
  Backtrace:
    1. codemetar:::codemeta_description(example_file("DESCRIPTION_good_readmeinurl"))
    2. codemetar:::add_software_terms(codemeta, descr)
    3. codemetar:::parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
    4. codemetar:::get_sys_links(pkg, description = sys_reqs)
    8. codemetar:::get_rhub_json_names("pkg", pkg)
   11. jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_con(txt, bigint_as_char)
   16. base::open.connection(con, "rb")
  
  ── 2. Error: We can parse additional terms (@test-codemeta_description.R#29)  ──
  HTTP error 502.
  Backtrace:
    1. codemetar:::codemeta_description(example_file("DESCRIPTION_ex1.dcf"))
    2. codemetar:::add_software_terms(codemeta, descr)
    3. codemetar:::parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
    4. codemetar:::get_sys_links(pkg, description = sys_reqs)
    8. codemetar:::get_rhub_json_names("pkg", pkg)
   11. jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_con(txt, bigint_as_char)
   16. base::open.connection(con, "rb")
  
  ── 3. Error: We can parse plain Authors: & Maintainers: entries (@test-codemeta_
  HTTP error 502.
  Backtrace:
    1. codemetar:::codemeta_description(example_file("DESCRIPTION_ex1.dcf"))
    2. codemetar:::add_software_terms(codemeta, descr)
    3. codemetar:::parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
    4. codemetar:::get_sys_links(pkg, description = sys_reqs)
    8. codemetar:::get_rhub_json_names("pkg", pkg)
   11. jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
   12. jsonlite:::parse_and_simplify(...)
   13. jsonlite:::parseJSON(txt, bigint_as_char)
   14. jsonlite:::parse_con(txt, bigint_as_char)
   16. base::open.connection(con, "rb")
  
  ── 4. Error: Helper functions work correctly (@test-codemeta_description.R#82)  
  HTTP error 502.
  Backtrace:
    1. codemetar:::add_software_terms(codemeta, descr)
    2. codemetar:::parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
    3. codemetar:::get_sys_links(pkg, description = sys_reqs)
    7. codemetar:::get_rhub_json_names("pkg", pkg)
   10. jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
   11. jsonlite:::parse_and_simplify(...)
   12. jsonlite:::parseJSON(txt, bigint_as_char)
   13. jsonlite:::parse_con(txt, bigint_as_char)
   15. base::open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 78 | SKIPPED: 32 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: no direct link to README (@test-codemeta_description.R#20) 
  2. Error: We can parse additional terms (@test-codemeta_description.R#29) 
  3. Error: We can parse plain Authors: & Maintainers: entries (@test-codemeta_description.R#36) 
  4. Error: Helper functions work correctly (@test-codemeta_description.R#82) 
  
  Error: testthat unit tests failed
  Execution halted