Running ‘testthat.R’ [13s/400s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(codemetar)
  > 
  > test_check("codemetar")
  ── 1. Error: We can parse additional terms (@test-codemeta_description.R#19)  ──
  Timeout was reached: Resolving timed out after 10000 milliseconds
  1: codemeta_description(f) at testthat/test-codemeta_description.R:19
  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/map/%s", curl::curl_escape(description)), 
         simplifyVector = FALSE)
  5: fromJSON_string(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 validate this file (@test-codemeta_validate.R#5)  ──────────
  jsonld.InvalidUrl: Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.
  1: testthat::expect_true(codemeta_validate("codemeta_test.json")) at testthat/test-codemeta_validate.R:5
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: codemeta_validate("codemeta_test.json")
  5: writeLines(jsonld::jsonld_compact(jsonld::jsonld_expand(codemeta), context), test)
  6: jsonld::jsonld_compact(jsonld::jsonld_expand(codemeta), context)
  7: validate_arg(doc)
  8: jsonld::jsonld_expand(codemeta)
  9: structure(ctx$call("r_expand", compacted, options), class = "json")
  10: ctx$call("r_expand", compacted, options)
  11: this$eval(src)
  12: get_str_output(context_eval(join(src), private$context))
  13: context_eval(join(src), private$context)
  
  ── 3. Error: we can call crosswalk (@test-crosswalk.R#8)  ──────────────────────
  jsonld.InvalidUrl: Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.
  1: crosswalk(f, "GitHub") at testthat/test-crosswalk.R:8
  2: crosswalk_transform(x, crosswalk_context = from_context, codemeta_context = to_context)
  3: jsonld::jsonld_compact(y, context = codemeta_context)
  4: structure(ctx$call("r_compact", doc, context, options), class = "json")
  5: ctx$call("r_compact", doc, context, options)
  6: this$eval(src)
  7: get_str_output(context_eval(join(src), private$context))
  8: context_eval(join(src), private$context)
  
  ── 4. Error: Test the various cases for dependencies (@test-parse_depends.R#25) 
  Timeout was reached: Operation timed out after 10005 milliseconds with 0 out of 0 bytes received
  1: codemeta_description(f) at testthat/test-parse_depends.R:25
  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: fromJSON_string(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")
  
  ── 5. Error: We can use either a path or pkg name in writing (@test-write_codeme
  Timeout was reached: Resolving timed out after 10000 milliseconds
  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: fromJSON_string(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: 69 SKIPPED: 10 FAILED: 5
  1. Error: We can parse additional terms (@test-codemeta_description.R#19) 
  2. Error: we can validate this file (@test-codemeta_validate.R#5) 
  3. Error: we can call crosswalk (@test-crosswalk.R#8) 
  4. Error: Test the various cases for dependencies (@test-parse_depends.R#25) 
  5. Error: We can use either a path or pkg name in writing (@test-write_codemeta.R#42) 
  
  Error: testthat unit tests failed
  Execution halted