Running ‘testthat.R’ [12s/370s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(codemetar)
  > 
  > test_check("codemetar")
  ── 1. Error: we can validate this file (@test-codemeta_validate.R#4)  ──────────
  Timeout was reached: Resolving timed out after 10000 milliseconds
  1: write_codemeta("codemetar", "codemeta_test.json") at testthat/test-codemeta_validate.R:4
  2: create_codemeta(pkg = pkg, root = root, use_filesize = use_filesize) %>% jsonlite::write_json(path, 
         pretty = TRUE, auto_unbox = TRUE, ...)
  3: eval(lhs, parent, parent)
  4: eval(lhs, parent, parent)
  5: create_codemeta(pkg = pkg, root = root, use_filesize = use_filesize)
  6: codemeta_description(file.path(root, "DESCRIPTION"), id = id, cm)
  7: add_software_terms(codemeta, descr)
  8: parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
  9: get_sys_links(pkg, description = sys_reqs)
  10: get_url_rhub("get", unique(c(get_rhub_json_names("pkg", pkg), get_rhub_json_names("map", 
         curl::curl_escape(description)))))
  11: sprintf("https://sysreqs.r-hub.io/%s/%s", a, b)
  12: unique(c(get_rhub_json_names("pkg", pkg), get_rhub_json_names("map", curl::curl_escape(description))))
  13: get_rhub_json_names("pkg", pkg)
  14: sapply(X = jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE), FUN = names)
  15: lapply(X = X, FUN = FUN, ...)
  16: jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
  17: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  18: parseJSON(txt, bigint_as_char)
  19: parse_con(txt, bigint_as_char)
  20: open(con, "rb")
  21: open.connection(con, "rb")
  
  ── 2. Error: We can read an existing codemeta.json file (@test-write_codemeta.R#
  Timeout was reached: Resolving timed out after 10000 milliseconds
  1: write_codemeta("codemetar") at testthat/test-write_codemeta.R:14
  2: create_codemeta(pkg = pkg, root = root, use_filesize = use_filesize) %>% jsonlite::write_json(path, 
         pretty = TRUE, auto_unbox = TRUE, ...)
  3: eval(lhs, parent, parent)
  4: eval(lhs, parent, parent)
  5: create_codemeta(pkg = pkg, root = root, use_filesize = use_filesize)
  6: codemeta_description(file.path(root, "DESCRIPTION"), id = id, cm)
  7: add_software_terms(codemeta, descr)
  8: parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
  9: get_sys_links(pkg, description = sys_reqs)
  10: get_url_rhub("get", unique(c(get_rhub_json_names("pkg", pkg), get_rhub_json_names("map", 
         curl::curl_escape(description)))))
  11: sprintf("https://sysreqs.r-hub.io/%s/%s", a, b)
  12: unique(c(get_rhub_json_names("pkg", pkg), get_rhub_json_names("map", curl::curl_escape(description))))
  13: get_rhub_json_names("map", curl::curl_escape(description))
  14: sapply(X = jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE), FUN = names)
  15: lapply(X = X, FUN = FUN, ...)
  16: jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
  17: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  18: parseJSON(txt, bigint_as_char)
  19: parse_con(txt, bigint_as_char)
  20: open(con, "rb")
  21: open.connection(con, "rb")
  
  ── 3. Error: We can use either a path or pkg name in writing (@test-write_codeme
  Timeout was reached: Operation timed out after 10004 milliseconds with 0 out of 0 bytes received
  1: write_codemeta("codemetar") at testthat/test-write_codemeta.R:25
  2: create_codemeta(pkg = pkg, root = root, use_filesize = use_filesize) %>% jsonlite::write_json(path, 
         pretty = TRUE, auto_unbox = TRUE, ...)
  3: eval(lhs, parent, parent)
  4: eval(lhs, parent, parent)
  5: create_codemeta(pkg = pkg, root = root, use_filesize = use_filesize)
  6: codemeta_description(file.path(root, "DESCRIPTION"), id = id, cm)
  7: add_software_terms(codemeta, descr)
  8: parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
  9: get_sys_links(pkg, description = sys_reqs)
  10: get_url_rhub("get", unique(c(get_rhub_json_names("pkg", pkg), get_rhub_json_names("map", 
         curl::curl_escape(description)))))
  11: sprintf("https://sysreqs.r-hub.io/%s/%s", a, b)
  12: unique(c(get_rhub_json_names("pkg", pkg), get_rhub_json_names("map", curl::curl_escape(description))))
  13: get_rhub_json_names("pkg", pkg)
  14: sapply(X = jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE), FUN = names)
  15: lapply(X = X, FUN = FUN, ...)
  16: jsonlite::fromJSON(get_url_rhub(a, b), simplifyVector = FALSE)
  17: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  18: parseJSON(txt, bigint_as_char)
  19: parse_con(txt, bigint_as_char)
  20: open(con, "rb")
  21: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 135 SKIPPED: 16 FAILED: 3
  1. Error: we can validate this file (@test-codemeta_validate.R#4) 
  2. Error: We can read an existing codemeta.json file (@test-write_codemeta.R#14) 
  3. Error: We can use either a path or pkg name in writing (@test-write_codemeta.R#25) 
  
  Error: testthat unit tests failed
  Execution halted