Running ‘test-all.R’ [1s/1s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library("testthat")
  > test_check("crminer")
  Loading required package: crminer
  ── 1. Error: crm_links works (@test-crm_links.R#4)  ────────────────────────────
  package 'rcrossref' not found
  1: crm_links("10.7717/peerj.1268", "pdf") at testthat/test-crm_links.R:4
  2: crm_works_links(dois = doi, ...)
  3: stats::setNames(lapply(dois, get_links, ...), dois)
  4: lapply(dois, get_links, ...)
  5: FUN(X[[i]], ...)
  6: crm_GET(sprintf("works/%s", x), NULL, FALSE, ...)
  7: crul::HttpClient$new(url = url, headers = list(useragent = crminer_ua(), `X-USER-AGENT` = crminer_ua()), 
         opts = list(...))
  8: .subset2(public_bind_env, "initialize")(...)
  9: crminer_ua()
  10: sprintf("rOpenSci(rcrossref/%s)", utils::packageVersion("rcrossref"))
  11: utils::packageVersion("rcrossref")
  12: stop(gettextf("package %s not found", sQuote(pkg)), domain = NA)
  
  ── 2. Error: crm_text works: pdf (@test-crm_text.R#6)  ─────────────────────────
  package 'rcrossref' not found
  1: crm_links("10.7717/peerj.1268", "pdf") at testthat/test-crm_text.R:6
  2: crm_works_links(dois = doi, ...)
  3: stats::setNames(lapply(dois, get_links, ...), dois)
  4: lapply(dois, get_links, ...)
  5: FUN(X[[i]], ...)
  6: crm_GET(sprintf("works/%s", x), NULL, FALSE, ...)
  7: crul::HttpClient$new(url = url, headers = list(useragent = crminer_ua(), `X-USER-AGENT` = crminer_ua()), 
         opts = list(...))
  8: .subset2(public_bind_env, "initialize")(...)
  9: crminer_ua()
  10: sprintf("rOpenSci(rcrossref/%s)", utils::packageVersion("rcrossref"))
  11: utils::packageVersion("rcrossref")
  12: stop(gettextf("package %s not found", sQuote(pkg)), domain = NA)
  
  ── 3. Error: crm_text fails well (@test-crm_text.R#24)  ────────────────────────
  package 'rcrossref' not found
  1: crm_links("10.1155/mbd.1994.183", "all") at testthat/test-crm_text.R:24
  2: crm_works_links(dois = doi, ...)
  3: stats::setNames(lapply(dois, get_links, ...), dois)
  4: lapply(dois, get_links, ...)
  5: FUN(X[[i]], ...)
  6: crm_GET(sprintf("works/%s", x), NULL, FALSE, ...)
  7: crul::HttpClient$new(url = url, headers = list(useragent = crminer_ua(), `X-USER-AGENT` = crminer_ua()), 
         opts = list(...))
  8: .subset2(public_bind_env, "initialize")(...)
  9: crminer_ua()
  10: sprintf("rOpenSci(rcrossref/%s)", utils::packageVersion("rcrossref"))
  11: utils::packageVersion("rcrossref")
  12: stop(gettextf("package %s not found", sQuote(pkg)), domain = NA)
  
  ── 4. Error: crm_text with pdf fails for 'unspecified' = FALSE (@test-crm_text.R
  package 'rcrossref' not found
  1: crm_links("10.2903/j.efsa.2014.3550", type = "all") at testthat/test-crm_text.R:40
  2: crm_works_links(dois = doi, ...)
  3: stats::setNames(lapply(dois, get_links, ...), dois)
  4: lapply(dois, get_links, ...)
  5: FUN(X[[i]], ...)
  6: crm_GET(sprintf("works/%s", x), NULL, FALSE, ...)
  7: crul::HttpClient$new(url = url, headers = list(useragent = crminer_ua(), `X-USER-AGENT` = crminer_ua()), 
         opts = list(...))
  8: .subset2(public_bind_env, "initialize")(...)
  9: crminer_ua()
  10: sprintf("rOpenSci(rcrossref/%s)", utils::packageVersion("rcrossref"))
  11: utils::packageVersion("rcrossref")
  12: stop(gettextf("package %s not found", sQuote(pkg)), domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 57 SKIPPED: 17 FAILED: 4
  1. Error: crm_links works (@test-crm_links.R#4) 
  2. Error: crm_text works: pdf (@test-crm_text.R#6) 
  3. Error: crm_text fails well (@test-crm_text.R#24) 
  4. Error: crm_text with pdf fails for 'unspecified' = FALSE (@test-crm_text.R#40) 
  
  Error: testthat unit tests failed
  Execution halted