Running ‘testthat.R’ [27s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RstoxData)
  > 
  > test_check("RstoxData")
  ── Warning (test-StoxAcoustic.R:28:5): (code run outside of `test_that()`) ─────
  StoX: Removing 2 rows of duplicated keys from table Beam. To see the duplicated rows run the following in R: dat <- data.table::fread("/tmp/Rtmpp9bsu4/file36c11ca45166")
  
  ── Warning (test-StoxAcoustic.R:32:5): (code run outside of `test_that()`) ─────
  StoX: Removing 2 rows of duplicated keys from table Beam. To see the duplicated rows run the following in R: dat <- data.table::fread("/tmp/Rtmpp9bsu4/file36c11eddef33")
  
  ── Warning (test-StoxBiotic.R:10:1): (code run outside of `test_that()`) ───────
  StoX: Removing 1 rows of duplicated keys from table SpeciesCategory. To see the duplicated rows run the following in R: dat <- data.table::fread("/tmp/Rtmpp9bsu4/file36c12c0c100b")
  
  ── Warning (test-StoxBiotic.R:15:1): (code run outside of `test_that()`) ───────
  StoX: Removing 1 rows of duplicated keys from table SpeciesCategory. To see the duplicated rows run the following in R: dat <- data.table::fread("/tmp/Rtmpp9bsu4/file36c172055cdf")
  
  ── Warning (test-StoxExport.R:19:1): (code run outside of `test_that()`) ───────
  Item 5 has 0 rows but longest item has 1; filled with NA
  
  ── Warning (test-StoxExport.R:20:1): (code run outside of `test_that()`) ───────
  Item 5 has 0 rows but longest item has 1; filled with NA
  
  ── Warning (test-StoxExport.R:27:1): (code run outside of `test_that()`) ───────
  URL 'https://acoustic.ices.dk/Services/Schema/XML/AC_Survey.xml': status was 'Couldn't connect to server'
  
  ── Warning (test-StoxExport.R:27:1): (code run outside of `test_that()`) ───────
  StoX: Url https://acoustic.ices.dk/Services/Schema/XML/AC_Survey.xml is not exist or no internet connection available.
  
  ── ERROR (test-StoxExport.R:27:1): (code run outside of `test_that()`) ─────────
  Error: no applicable method for 'xml_find_all' applied to an object of class "logical"
  Backtrace:
      █
   1. └─RstoxData::WriteICESAcoustic(data, Combine = FALSE) test-StoxExport.R:27:0
   2.   └─base::lapply(AcousticData, prepareICESAcoustic, Combine = Combine)
   3.     └─RstoxData:::FUN(X[[i]], ...)
   4.       └─RstoxData:::compareICES(...)
   5.         └─xml2::xml_find_all(pg, "//Key")
  
  [1] "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources//ICES_Acoustic_1.xml"
  [2] "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources//ICES_Biotic_1.xml"  
  [3] "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources//ICES_Acoustic_2.xml"
  [4] "/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources//ICES_Biotic_2.xml"  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  Warning (test-StoxAcoustic.R:28:5): (code run outside of `test_that()`)
  Warning (test-StoxAcoustic.R:32:5): (code run outside of `test_that()`)
  Warning (test-StoxBiotic.R:10:1): (code run outside of `test_that()`)
  Warning (test-StoxBiotic.R:15:1): (code run outside of `test_that()`)
  Warning (test-StoxExport.R:19:1): (code run outside of `test_that()`)
  Warning (test-StoxExport.R:20:1): (code run outside of `test_that()`)
  Warning (test-StoxExport.R:27:1): (code run outside of `test_that()`)
  Warning (test-StoxExport.R:27:1): (code run outside of `test_that()`)
  ERROR (test-StoxExport.R:27:1): (code run outside of `test_that()`)
  
  [ FAIL 1 | WARN 8 | SKIP 0 | PASS 99 ]
  Error: Test failures
  In addition: Warning message:
  In if (!base.OK && isBaseNamespace(ns)) stop("operation not allowed on base namespace") else ns :
    closing unused connection 4 (https://acoustic.ices.dk/Services/Schema/XML/AC_Survey.xml)
  Execution halted