Running ‘testthat.R’ [123s/158s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("emuR")
  Loading required package: emuR
  
  Attaching package: 'emuR'
  
  The following object is masked from 'package:base':
  
      norm
  
  ── 1. Error: replace_itemLabels replaces correct labels (@test_emuR-autoproc_ann
  cannot open the connection
  1: replace_itemLabels(ae, attributeDefinitionName = "Phonetic", origLabels = "n", newLabels = "n_rep", 
         verbose = F) at testthat/test_emuR-autoproc_annots.R:31
  2: rewrite_allAnnots(emuDBhandle, verbose = verbose)
  3: writeLines(annotJSONchar, annotFilePath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 2. Error: duplicate_level works correctly (@test_emuR-autoproc_annots.R#68)  
  cannot open the connection
  1: duplicate_level(ae, levelName = "Phonetic", duplicateLevelName = "Phonetic2", verbose = F) at testthat/test_emuR-autoproc_annots.R:68
  2: add_levelDefinition(emuDBhandle, duplicateLevelName, type = ldef$type, rewriteAllAnnots = FALSE, 
         verbose = verbose)
  3: store_DBconfig(emuDBhandle, dbConfig)
  4: writeLines(json, dbCfgPath, useBytes = TRUE)
  5: file(con, "w")
  
  ── 3. Error: duplicateLinks = F works correctly (@test_emuR-autoproc_annots.R#93
  cannot open the connection
  1: duplicate_level(ae, levelName = "Phonetic", duplicateLevelName = "Phonetic3", duplicateLinks = F, 
         verbose = F) at testthat/test_emuR-autoproc_annots.R:93
  2: add_levelDefinition(emuDBhandle, duplicateLevelName, type = ldef$type, rewriteAllAnnots = FALSE, 
         verbose = verbose)
  3: store_DBconfig(emuDBhandle, dbConfig)
  4: writeLines(json, dbCfgPath, useBytes = TRUE)
  5: file(con, "w")
  
  ── 4. Error: linkDuplicates works correctly (@test_emuR-autoproc_annots.R#102)  
  cannot open the connection
  1: duplicate_level(ae, levelName = "Phonetic", duplicateLevelName = "Phonetic4", duplicateLinks = F, 
         linkDuplicates = T, verbose = F) at testthat/test_emuR-autoproc_annots.R:102
  2: add_levelDefinition(emuDBhandle, duplicateLevelName, type = ldef$type, rewriteAllAnnots = FALSE, 
         verbose = verbose)
  3: store_DBconfig(emuDBhandle, dbConfig)
  4: writeLines(json, dbCfgPath, useBytes = TRUE)
  5: file(con, "w")
  
  ── 5. Error: add = (C)RUD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#27)  ─
  cannot open the connection
  1: add_perspective(ae, name = "newPersp") at testthat/test_emuR-database.DBconfig.EMUwebAppConfig.R:27
  2: store_DBconfig(emuDBhandle, DBconfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 6. Failure: list = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#39)
  df$name[4] == "newPersp" isn't true.
  
  ── 7. Failure: list = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#40)
  df$signalCanvasesOrder[4] == "OSCI; SPEC" isn't true.
  
  ── 8. Failure: list = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#41)
  df$levelCanvasesOrder[4] == "" isn't true.
  
  ── 9. Error: remove = CRU(D) (@test_emuR-database.DBconfig.EMUwebAppConfig.R#50)
  No perspective with name: 'newPersp' found!
  1: remove_perspective(ae, name = "newPersp") at testthat/test_emuR-database.DBconfig.EMUwebAppConfig.R:50
  2: stop("No perspective with name: '", name, "' found!")
  
  ── 10. Error: set = (C)RUD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#77)  
  cannot open the connection
  1: set_signalCanvasesOrder(ae, perspectiveName = "default", order = c("OSCI", "SPEC", 
         "fm")) at testthat/test_emuR-database.DBconfig.EMUwebAppConfig.R:77
  2: store_DBconfig(emuDBhandle, DBconfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 11. Failure: get = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#88)
  order[3] not equal to "fm".
  1/1 mismatches
  x[1]: NA
  y[1]: "fm"
  
  ── 12. Error: set = (C)RUD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#124) 
  cannot open the connection
  1: set_levelCanvasesOrder(ae, perspectiveName = "default", order = c("Tone", "Phonetic")) at testthat/test_emuR-database.DBconfig.EMUwebAppConfig.R:124
  2: store_DBconfig(emuDBhandle, DBconfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 13. Failure: get = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#133
  order[1] not equal to "Tone".
  1/1 mismatches
  x[1]: "Phonetic"
  y[1]: "Tone"
  
  ── 14. Failure: get = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#134
  order[2] not equal to "Phonetic".
  1/1 mismatches
  x[1]: "Tone"
  y[1]: "Phonetic"
  
  ── 15. Error: add = (C)RUD (@test_emuR-database.DBconfig.R#46)  ────────────────
  cannot open the connection
  1: add_ssffTrackDefinition(ae, "newTrackName", "pitch", "pit", onTheFlyFunctionName = "mhsF0", 
         interactive = F, verbose = F) at testthat/test_emuR-database.DBconfig.R:46
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 16. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#56)  ─────────────
  df$name not equal to c("dft", "fm", "newTrackName").
  Lengths differ: 2 is not 3
  
  ── 17. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#57)  ─────────────
  df$columnName not equal to c("dft", "fm", "pitch").
  Lengths differ: 2 is not 3
  
  ── 18. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#58)  ─────────────
  df$fileExtension not equal to c("dft", "fms", "pit").
  Lengths differ: 2 is not 3
  
  ── 19. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#65)  ─────────────
  No ssffTrackDefinitions found with name: 'newTrackName'
  1: remove_ssffTrackDefinition(ae, name = "newTrackName", deleteFiles = T) at testthat/test_emuR-database.DBconfig.R:65
  2: stop("No ssffTrackDefinitions found with name: '", name, "'")
  
  ── 20. Error: remove = CRU(D) with force (@test_emuR-database.DBconfig.R#78)  ──
  cannot open the connection
  1: remove_linkDefinition(ae, "Intermediate", "Word", force = T, verbose = F) at testthat/test_emuR-database.DBconfig.R:78
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 21. Error: add = (C)RUD (@test_emuR-database.DBconfig.R#108)  ───────────────
  cannot open the connection
  1: add_levelDefinition(ae, "Phonetic2", "SEGMENT", verbose = F) at testthat/test_emuR-database.DBconfig.R:108
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 22. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#117)  ────────────
  as.vector(df$name[8:10]) not equal to c("Tone", "Foot", "Phonetic2").
  1/3 mismatches
  x[3]: NA
  y[3]: "Phonetic2"
  
  ── 23. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#118)  ────────────
  as.vector(df$type[8:10]) not equal to c("EVENT", "ITEM", "SEGMENT").
  1/3 mismatches
  x[3]: NA
  y[3]: "SEGMENT"
  
  ── 24. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#141)  ────────────
  Level definition:Phonetic2 does not exist in database ae
  1: remove_levelDefinition(ae, name = "Phonetic2", verbose = F) at testthat/test_emuR-database.DBconfig.R:141
  2: stop("Level definition:", name, " does not exist in database ", dbConfig$name)
  
  ── 25. Error: add = (C)RUD (@test_emuR-database.DBconfig.R#161)  ───────────────
  cannot open the connection
  1: add_attributeDefinition(ae, "Word", "testAttrDef", verbose = F) at testthat/test_emuR-database.DBconfig.R:161
  2: internal_add_attributeDefinition(emuDBhandle, levelName, name, type = "STRING", rewriteAllAnnots = TRUE, 
         verbose = verbose)
  3: store_DBconfig(emuDBhandle, dbConfig)
  4: writeLines(json, dbCfgPath, useBytes = TRUE)
  5: file(con, "w")
  
  ── 26. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#168)  ────────────
  df$name not equal to c("Word", "Accent", "Text", "testAttrDef").
  Lengths differ: 3 is not 4
  
  ── 27. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#169)  ────────────
  df$type not equal to c("STRING", "STRING", "STRING", "STRING").
  Lengths differ: 3 is not 4
  
  ── 28. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#170)  ────────────
  df$hasLabelGroups not equal to c(F, F, F, F).
  Lengths (3, 4) differ (comparison on first 3 components)
  
  ── 29. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#171)  ────────────
  df$hasLegalLabels not equal to c(F, F, F, F).
  Lengths (3, 4) differ (comparison on first 3 components)
  
  ── 30. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#178)  ────────────
  cannot open the connection
  1: remove_attributeDefinition(ae, "Word", "testAttrDef", force = T, verbose = F) at testthat/test_emuR-database.DBconfig.R:178
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 31. Error: set = (C)RUD (@test_emuR-database.DBconfig.R#201)  ───────────────
  cannot open the connection
  1: set_legalLabels(ae, levelName = "Word", attributeDefinitionName = "Word", legalLabels = c("A", 
         "B", "C")) at testthat/test_emuR-database.DBconfig.R:201
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 32. Failure: get = C(R)UD (@test_emuR-database.DBconfig.R#212)  ─────────────
  `ll` not equal to c("A", "B", "C").
  Modes: logical, character
  Lengths: 1, 3
  target is logical, current is character
  
  ── 33. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#217)  ────────────
  cannot open the connection
  1: remove_legalLabels(ae, levelName = "Word", attributeDefinitionName = "Word") at testthat/test_emuR-database.DBconfig.R:217
  2: set_legalLabels(emuDBhandle, levelName, attributeDefinitionName, legalLabels = NULL)
  3: store_DBconfig(emuDBhandle, dbConfig)
  4: writeLines(json, dbCfgPath, useBytes = TRUE)
  5: file(con, "w")
  
  ── 34. Error: add = (C)RUD (@test_emuR-database.DBconfig.R#246)  ───────────────
  cannot open the connection
  1: add_attrDefLabelGroup(ae, levelName = "Word", attributeDefinitionName = "Word", labelGroupName = "newGroup", 
         labelGroupValues = c("sdf", "f")) at testthat/test_emuR-database.DBconfig.R:246
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 35. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#269)  ────────────
  df[1, ]$name == "newGroup" isn't true.
  
  ── 36. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#270)  ────────────
  df[1, ]$values == "sdf; f" isn't true.
  
  ── 37. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#279)  ────────────
  labelGroupName 'newGroup' does not exists!
  1: remove_attrDefLabelGroup(ae, levelName = "Word", attributeDefinitionName = "Word", 
         labelGroupName = "newGroup") at testthat/test_emuR-database.DBconfig.R:279
  2: stop("labelGroupName '", labelGroupName, "' does not exists!")
  
  ── 38. Error: add = (C)RUD (@test_emuR-database.DBconfig.R#313)  ───────────────
  cannot open the connection
  1: add_linkDefinition(ae, "ONE_TO_MANY", superlevelName = "Phoneme", sublevelName = "Tone") at testthat/test_emuR-database.DBconfig.R:313
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 39. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#322)  ────────────
  nrow(df) not equal to 10.
  1/1 mismatches
  [1] 9 - 10 == -1
  
  ── 40. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#323)  ────────────
  df$type[10] == "ONE_TO_MANY" isn't true.
  
  ── 41. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#324)  ────────────
  df$superlevelName[10] == "Phoneme" isn't true.
  
  ── 42. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#325)  ────────────
  df$sublevelName[10] == "Tone" isn't true.
  
  ── 43. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#342)  ────────────
  No linkDefinition found for superlevelName 'Phoneme' and sublevelName 'Tone'
  1: remove_linkDefinition(ae, superlevelName = "Phoneme", sublevelName = "Tone") at testthat/test_emuR-database.DBconfig.R:342
  2: stop("No linkDefinition found for superlevelName '", superlevelName, "' and sublevelName '", 
         sublevelName, "'")
  
  ── 44. Error: remove = CRU(D) with force (@test_emuR-database.DBconfig.R#353)  ─
  cannot open the connection
  1: remove_linkDefinition(ae, "Word", "Syllable", force = T, verbose = F) at testthat/test_emuR-database.DBconfig.R:353
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 45. Error: add = (C)RUD (@test_emuR-database.DBconfig.R#374)  ───────────────
  cannot open the connection
  1: add_labelGroup(ae, name = "testLG", values = c("a", "b", "c")) at testthat/test_emuR-database.DBconfig.R:374
  2: store_DBconfig(emuDBhandle, dbConfig)
  3: writeLines(json, dbCfgPath, useBytes = TRUE)
  4: file(con, "w")
  
  ── 46. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#381)  ────────────
  df$name == "testLG" isn't true.
  
  ── 47. Failure: list = C(R)UD (@test_emuR-database.DBconfig.R#382)  ────────────
  df$values == "a; b; c" isn't true.
  
  ── 48. Error: remove = CRU(D) (@test_emuR-database.DBconfig.R#390)  ────────────
  No labelGroup with name 'testLG' found!
  1: remove_labelGroup(ae, name = "testLG") at testthat/test_emuR-database.DBconfig.R:390
  2: stop("No labelGroup with name '", name, "' found!")
  
  ── 49. Error: rename works correctly (@test_emuR-database.R#447)  ──────────────
  cannot open the connection
  1: rename_emuDB(path2db, "aeRename") at testthat/test_emuR-database.R:447
  2: writeLines(json, dbCfgPath_old, useBytes = TRUE)
  3: file(con, "w")
  
  ── 50. Error: change in _annot.json is re-cached (@test_emuR-database.caching.R#
  cannot open the connection
  1: writeLines(pbpJSON, file.path(path2db, "new_ses", "msajc010_bndl", "msajc010_annot.json"), 
         useBytes = TRUE) at testthat/test_emuR-database.caching.R:52
  2: file(con, "w")
  
  Read 16 items
  Read 12 records
  Read 24 items
  Read 20 records
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 715 SKIPPED: 41 FAILED: 50
  1. Error: replace_itemLabels replaces correct labels (@test_emuR-autoproc_annots.R#31) 
  2. Error: duplicate_level works correctly (@test_emuR-autoproc_annots.R#68) 
  3. Error: duplicateLinks = F works correctly (@test_emuR-autoproc_annots.R#93) 
  4. Error: linkDuplicates works correctly (@test_emuR-autoproc_annots.R#102) 
  5. Error: add = (C)RUD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#27) 
  6. Failure: list = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#39) 
  7. Failure: list = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#40) 
  8. Failure: list = C(R)UD (@test_emuR-database.DBconfig.EMUwebAppConfig.R#41) 
  9. Error: remove = CRU(D) (@test_emuR-database.DBconfig.EMUwebAppConfig.R#50) 
  1. ...
  
  Error: testthat unit tests failed
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Execution halted