Running ‘testthat.R’ [14s/416s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(codemetar)
  > 
  > test_check("codemetar")
  ── 1. Error: We can parse plain Authors: & Maintainers: entries (@test-codemeta_
  Timeout was reached: Resolving timed out after 10000 milliseconds
  1: codemeta_description(f) at testthat/test-codemeta_description.R:30
  2: parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
  3: get_sys_links(pkg, description = sys_reqs)
  4: jsonlite::fromJSON(sprintf("https://sysreqs.r-hub.io/pkg/%s", pkg), simplifyVector = FALSE)
  5: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  6: parseJSON(txt, bigint_as_char)
  7: parse_con(txt, bigint_as_char)
  8: open(con, "rb")
  9: open.connection(con, "rb")
  
  ── 2. Error: we can call crosswalk (@test-crosswalk.R#25)  ─────────────────────
  HTTP error 502.
  1: add_context(b, getOption("codemeta_context", "http://purl.org/codemeta/2.0")) at testthat/test-crosswalk.R:25
  2: fromJSON(context)
  3: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  4: parseJSON(txt, bigint_as_char)
  5: parse_con(txt, bigint_as_char)
  6: open(con, "rb")
  7: open.connection(con, "rb")
  
  ── 3. Error: (unknown) (@test-jsonld-compact.R#20)  ────────────────────────────
  jsonld.InvalidUrllist(code = "loading remote context failed", url = "http://purl.org/codemeta/2.0", cause = "Evaluation error: Download (HTTP 502): http://purl.org/codemeta/2.0.")
  1: jsonld_compact(doc, "http://purl.org/codemeta/2.0") at testthat/test-jsonld-compact.R:20
  2: structure(store_val(), class = "json")
  3: store_val()
  4: stop(out$err)
  
  ── 4. Error: We can use either a path or pkg name in writing (@test-write_codeme
  Timeout was reached: Operation timed out after 10001 milliseconds with 0 out of 0 bytes received
  1: write_codemeta("codemetar") at testthat/test-write_codemeta.R:42
  2: create_codemeta(pkg = pkg, root = root)
  3: codemeta_description(file.path(root, "DESCRIPTION"), id = id, cm)
  4: parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
  5: get_sys_links(pkg, description = sys_reqs)
  6: jsonlite::fromJSON(sprintf("https://sysreqs.r-hub.io/pkg/%s", pkg), simplifyVector = FALSE)
  7: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  8: parseJSON(txt, bigint_as_char)
  9: parse_con(txt, bigint_as_char)
  10: open(con, "rb")
  11: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 73 SKIPPED: 10 FAILED: 4
  1. Error: We can parse plain Authors: & Maintainers: entries (@test-codemeta_description.R#30) 
  2. Error: we can call crosswalk (@test-crosswalk.R#25) 
  3. Error: (unknown) (@test-jsonld-compact.R#20) 
  4. Error: We can use either a path or pkg name in writing (@test-write_codemeta.R#42) 
  
  Error: testthat unit tests failed
  Execution halted