Running ‘testthat.R’ [10s/304s]
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: Operation timed out after 10002 milliseconds with 0 out of 0 bytes received
  1: codemeta_description(f) at testthat/test-codemeta_description.R:26
  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")
  
  ── 2. Error: we can call crosswalk (@test-crosswalk.R#8)  ──────────────────────
  HTTP error 404.
  1: crosswalk(f, "GitHub") at testthat/test-crosswalk.R:8
  2: get_crosswalk_context(crosswalk_table(from), codemeta_context)
  3: crosswalk_table(from)
  4: readr::read_csv(full_crosswalk, col_types = cols(.default = "c"))
  5: read_delimited(file, tokenizer, col_names = col_names, col_types = col_types, locale = locale, 
         skip = skip, comment = comment, n_max = n_max, guess_max = guess_max, progress = progress)
  6: datasource_connection(file, skip, comment)
  7: read_connection(path)
  8: open(con, "rb")
  9: open.connection(con, "rb")
  
  ── 3. Error: Sys requirements (@test-parse_depends.R#48)  ──────────────────────
  Timeout was reached: Resolving timed out after 10010 milliseconds
  1: codemeta_description(f) at testthat/test-parse_depends.R:48
  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")
  
  ── 4. 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:29
  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")
  
  ── 5. Error: we can write codemeta given a codemeta object (@test-write_codemeta
  Timeout was reached: Resolving timed out after 10010 milliseconds
  1: expect_is(create_codemeta("codemetar", codemeta), "list") at testthat/test-write_codemeta.R:60
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: create_codemeta("codemetar", codemeta)
  5: codemeta_description(file.path(root, "DESCRIPTION"), id = id, cm)
  6: parse_sys_reqs(descr$get("Package"), descr$get("SystemRequirements"))
  7: get_sys_links(pkg, description = sys_reqs)
  8: jsonlite::fromJSON(sprintf("https://sysreqs.r-hub.io/pkg/%s", pkg), simplifyVector = FALSE)
  9: fromJSON_string(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  10: parseJSON(txt, bigint_as_char)
  11: parse_con(txt, bigint_as_char)
  12: open(con, "rb")
  13: open.connection(con, "rb")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 65 SKIPPED: 10 FAILED: 5
  1. Error: We can parse plain Authors: & Maintainers: entries (@test-codemeta_description.R#26) 
  2. Error: we can call crosswalk (@test-crosswalk.R#8) 
  3. Error: Sys requirements (@test-parse_depends.R#48) 
  4. Error: We can read an existing codemeta.json file (@test-write_codemeta.R#29) 
  5. Error: we can write codemeta given a codemeta object (@test-write_codemeta.R#60) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In lapply(args, .listify) :
    closing unused connection 4 (https://github.com/codemeta/codemeta/raw/master/crosswalk.csv)
  Execution halted