Running ‘testthat.R’ [36s/116s]
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/Rtmp6J5FVQ/file1b9f17368bf1")
  
  ── 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/Rtmp6J5FVQ/file1b9f1ac5e044")
  
  ── 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/Rtmp6J5FVQ/file1b9fd8b16ad")
  
  ── 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/Rtmp6J5FVQ/file1b9f577fab2e")
  
  [1] "Resulting CSV file is saved as:"
  [1] "/tmp/Rtmp6J5FVQ/file1b9f702a2637.csv"
  [1] "All species that is not listed in https://acoustic.ices.dk/Services/Schema/XML/SpecWoRMS.xml are automatically removed. Set allowRemoveSpecies = FALSE to prevent this."
  [1] "All species that is not listed in https://acoustic.ices.dk/Services/Schema/XML/SpecWoRMS.xml are automatically removed. Set allowRemoveSpecies = FALSE to prevent this."
  [1] "Resulting CSV file is saved as:"
  [1] "/tmp/Rtmp6J5FVQ/file1b9f1619c082.csv"
  ── Warning (test-StoxExport.R:27:1): (code run outside of `test_that()`) ───────
  StoX: NA not defined in https://acoustic.ices.dk/Services/Schema/XML/AC_SaCategory.xml
  
  ── Warning (test-StoxExport.R:28:1): (code run outside of `test_that()`) ───────
  StoX: NA not defined in https://acoustic.ices.dk/Services/Schema/XML/AC_SaCategory.xml
  
  [1] "Resulting CSV file is saved as:"
  [1] "/tmp/Rtmp6J5FVQ/file1b9fe4bab34.csv"
  [1] "Resulting CSV file is saved as:"
  [1] "/tmp/Rtmp6J5FVQ/file1b9f66fde6f7.csv"
  ── Warning (test-readXmlFile.R:60:1): (code run outside of `test_that()`) ──────
  cannot create file '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources/bio_å_prøve.xml', reason 'Read-only file system'
  
  [1] "File /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources/bio_å_prøve.xml does not exist."
  ── FAILURE (test-readXmlFile.R:62:1): (code run outside of `test_that()`) ──────
  encParse$mission$missiontypename[1] == "Prøvebåt" is not TRUE
  
  `actual`:       
  `expected`: TRUE
  
  [1] "File /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RstoxData/testresources/bio_å_prøve.xml does not exist."
  ── FAILURE (test-readXmlFile.R:64:1): (code run outside of `test_that()`) ──────
  encParse$mission$missiontypename[1] == "Prøvebåt" is not TRUE
  
  `actual`:       
  `expected`: TRUE
  
  [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:27:1): (code run outside of `test_that()`)
  Warning (test-StoxExport.R:28:1): (code run outside of `test_that()`)
  Warning (test-readXmlFile.R:60:1): (code run outside of `test_that()`)
  FAILURE (test-readXmlFile.R:62:1): (code run outside of `test_that()`)
  FAILURE (test-readXmlFile.R:64:1): (code run outside of `test_that()`)
  
  [ FAIL 2 | WARN 7 | SKIP 0 | PASS 99 ]
  Error: Test failures
  Execution halted