Running ‘testthat.R’ [6s/11s]
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")
  ── ERROR (test-add_repository_terms.R:43:3): add_repository_terms does not keep 
  Error: Could not resolve host: sysreqs.r-hub.io
  Backtrace:
       █
    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")
  
  ── Skip (test-codemeta_description.R:5:3): We can use a preset id ──────────────
  Reason: On CRAN
  
  ── ERROR (test-codemeta_description.R:13:3): We can parse additional terms ─────
  Error: Could not resolve host: sysreqs.r-hub.io
  Backtrace:
       █
    1. └─codemetar:::codemeta_description(example_file("DESCRIPTION_ex1.dcf")) test-codemeta_description.R:13: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:20:3): We can parse plain Authors: & Maint
  Error: Could not resolve host: sysreqs.r-hub.io
  Backtrace:
       █
    1. └─codemetar:::codemeta_description(example_file("DESCRIPTION_ex1.dcf")) test-codemeta_description.R:20: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")
  
  ── Skip (test-extract_badges.R:21:3): we can parse drake README html ───────────
  Reason: On CRAN
  
  ── Skip (test-frame.R:7:5): we have fully compacted non-schema.org terms: ──────
  Reason: On CRAN
  
  ── Skip (test-give_opinions.R:8:3): Silent if ok URLs ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-give_opinions.R:16:3): Message if no URL ─────────────────────────
  Reason: On CRAN
  
  ── Skip (test-give_opinions.R:34:3): No message if ok description ──────────────
  Reason: On CRAN
  
  ── Skip (test-give_opinions.R:44:3): Message if bad URLS ───────────────────────
  Reason: On CRAN
  
  ── Skip (test-give_opinions.R:51:3): badges in README ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-give_opinions.R:81:3): add_url_fixmes() works ────────────────────
  Reason: On CRAN
  
  ── Skip (test-guess_metadata.R:5:3): guess_provider ────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-guess_metadata.R:61:3): guess_readme ─────────────────────────────
  Reason: nzchar(Sys.getenv("GITHUB_PAT")) is not TRUE
  
  ── Skip (test-guess_metadata.R:66:3): guess_readme() matches a single README fil
  Reason: nzchar(Sys.getenv("GITHUB_PAT")) is not TRUE
  
  ── Skip (test-guess_metadata.R:85:3): fileSize ─────────────────────────────────
  Reason: On CRAN
  
  ── Skip (test-guess_metadata.R:101:3): add_github_topics ───────────────────────
  Reason: On CRAN
  
  ── Skip (test-guess_metadata.R:121:3): rOpenSci peer-review ────────────────────
  Reason: On CRAN
  
  ── Skip (test-parse_depends.R:6:3): Test the various cases for dependencies ────
  Reason: On CRAN
  
  ── Skip (test-parse_depends.R:42:3): get_sameAs() works as expected ────────────
  Reason: On CRAN
  
  ── Skip (test-parse_depends.R:67:3): Sys requirements ──────────────────────────
  Reason: On CRAN
  
  ── Skip (test-write_codemeta.R:4:3): we can write a codemeta document given a pa
  Reason: On CRAN
  
  ── Skip (test-write_codemeta.R:15:3): We can read an existing codemeta.json file
  Reason: On CRAN
  
  ── Skip (test-write_codemeta.R:27:3): We can use either a path or pkg name in wr
  Reason: On CRAN
  
  ── Skip (test-write_codemeta.R:41:3): We can deduce relatedLink from installed p
  Reason: On CRAN
  
  ── Skip (test-write_codemeta.R:52:3): we can write codemeta given a codemeta obj
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (21)
  ● nzchar(Sys.getenv("GITHUB_PAT")) is not TRUE (2)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-add_repository_terms.R:43:3): add_repository_terms does not keep a direct link to README
  ERROR (test-codemeta_description.R:13:3): We can parse additional terms
  ERROR (test-codemeta_description.R:20:3): We can parse plain Authors: & Maintainers: entries
  
  [ FAIL 3 | WARN 0 | SKIP 23 | PASS 94 ]
  Error: Test failures
  Execution halted