Running 'testthat.R' [7s/20s]
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")
  == Skipped tests ===============================================================
  * On CRAN (22)
  * nzchar(Sys.getenv("GITHUB_PAT")) is not TRUE (2)
  
  == Failed tests ================================================================
  -- Error (test-add_repository_terms.R:43:3): add_repository_terms does not keep a direct link to README --
  Error: Timeout was reached: [sysreqs.r-hub.io] Resolving timed out after 10000 milliseconds
  Backtrace:
       x
    1. \-codemetar:::codemeta_description(example_file("DESCRIPTION_good_readmeinurl")) test-add_repository_terms.R:43:2
    2.   \-codemetar:::add_software_terms(codemeta, descr, verbose)
    3.     \-codemetar:::parse_sys_reqs(...)
    4.       \-codemetar:::get_sys_links(pkg, description = sys_reqs, verbose)
    5.         +-codemetar:::get_url_rhub(...)
    6.         | \-base::sprintf("https://sysreqs.r-hub.io/%s/%s", a, b)
    7.         +-base::unique(...)
    8.         \-codemetar:::get_rhub_json_names("pkg", pkg)
    9.           +-base::sapply(...)
   10.           | \-base::lapply(X = X, FUN = FUN, ...)
   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)
   15.                   +-base::open(con, "rb")
   16.                   \-base::open.connection(con, "rb")
  -- Error (test-codemeta_description.R:62:3): Helper functions work correctly ---
  Error: Could not resolve host: sysreqs.r-hub.io
  Backtrace:
       x
    1. \-codemetar:::add_software_terms(codemeta, descr) test-codemeta_description.R:62:2
    2.   \-codemetar:::parse_sys_reqs(...)
    3.     \-codemetar:::get_sys_links(pkg, description = sys_reqs, verbose)
    4.       +-codemetar:::get_url_rhub(...)
    5.       | \-base::sprintf("https://sysreqs.r-hub.io/%s/%s", a, b)
    6.       +-base::unique(...)
    7.       \-codemetar:::get_rhub_json_names("pkg", pkg)
    8.         +-base::sapply(...)
    9.         | \-base::lapply(X = X, FUN = FUN, ...)
   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)
   14.                 +-base::open(con, "rb")
   15.                 \-base::open.connection(con, "rb")
  
  [ FAIL 2 | WARN 0 | SKIP 24 | PASS 89 ]
  Error: Test failures
  Execution halted