Running ‘testthat.R’ [1s/380s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("lumendb")
  > 
  > test_check("lumendb")
  1. Error: Retrieve A Notice (@tests.R#4) ---------------------------------------
  Please install xml2 package
  1: ldnotice(1) at testthat/tests.R:4
  2: lumenHTTP(path = paste0("/notices/", notice, ".json"), ...)
  3: httr::content(r, "parsed")
  4: parse_auto(raw, type, encoding, ...)
  5: parser(x = content, type = type, encoding = encoding, ...)
  6: need_package("xml2")
  7: stop("Please install ", pkg, " package", call. = FALSE)
  
  2. Error: Print Notice Summary (@tests.R#9) ------------------------------------
  Please install xml2 package
  1: ldnotice(1) at testthat/tests.R:9
  2: lumenHTTP(path = paste0("/notices/", notice, ".json"), ...)
  3: httr::content(r, "parsed")
  4: parse_auto(raw, type, encoding, ...)
  5: parser(x = content, type = type, encoding = encoding, ...)
  6: need_package("xml2")
  7: stop("Please install ", pkg, " package", call. = FALSE)
  
  3. Error: Retrieve Entities (@tests.R#14) --------------------------------------
  Please install xml2 package
  1: ldentities(list(term = "joe")) at testthat/tests.R:14
  2: lumenHTTP(path = paste0("/entities/search"), query = c(query, list(page = page, per_page = per_page)), 
         ...)
  3: httr::content(r, "parsed")
  4: parse_auto(raw, type, encoding, ...)
  5: parser(x = content, type = type, encoding = encoding, ...)
  6: need_package("xml2")
  7: stop("Please install ", pkg, " package", call. = FALSE)
  
  4. Error: Retrieve Topics (@tests.R#19) ----------------------------------------
  Please install xml2 package
  1: ldtopics() at testthat/tests.R:19
  2: lumenHTTP(path = paste0("/topics.json"), ...)
  3: httr::content(r, "parsed")
  4: parse_auto(raw, type, encoding, ...)
  5: parser(x = content, type = type, encoding = encoding, ...)
  6: need_package("xml2")
  7: stop("Please install ", pkg, " package", call. = FALSE)
  
  5. Error: Search Works (@tests.R#24) -------------------------------------------
  Please install xml2 package
  1: ldsearch(list(term = "youtube")) at testthat/tests.R:24
  2: lumenHTTP(path = paste0("/notices/search"), query = c(query, list(page = page, per_page = per_page)), 
         ...)
  3: httr::content(r, "parsed")
  4: parse_auto(raw, type, encoding, ...)
  5: parser(x = content, type = type, encoding = encoding, ...)
  6: need_package("xml2")
  7: stop("Please install ", pkg, " package", call. = FALSE)
  
  testthat results ================================================================
  OK: 5 SKIPPED: 0 FAILED: 5
  1. Error: Retrieve A Notice (@tests.R#4) 
  2. Error: Print Notice Summary (@tests.R#9) 
  3. Error: Retrieve Entities (@tests.R#14) 
  4. Error: Retrieve Topics (@tests.R#19) 
  5. Error: Search Works (@tests.R#24) 
  
  Error: testthat unit tests failed
  Execution halted