Running ‘testthat.R’ [182s/184s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(vigicaen)
  > 
  > test_check("vigicaen")
  Saving _problems/test-vigi_routine-610.R
  Saving _problems/test-vigi_routine-654.R
  [ FAIL 2 | WARN 489 | SKIP 148 | PASS 587 ]
  
  ══ Skipped tests (148) ═════════════════════════════════════════════════════════
  • On CRAN (148): 'test-add_adr.R:1:1', 'test-add_adr.R:45:1',
    'test-add_adr.R:87:1', 'test-add_adr.R:156:1', 'test-add_adr.R:218:1',
    'test-add_adr.R:286:1', 'test-add_adr.R:318:1', 'test-add_adr.R:375:1',
    'test-add_adr.R:388:1', 'test-add_dose.R:1:1', 'test-add_drug.R:1:1',
    'test-add_drug.R:73:1', 'test-add_drug.R:121:1', 'test-add_drug.R:169:1',
    'test-add_drug.R:311:1', 'test-add_drug.R:445:1', 'test-add_drug.R:513:1',
    'test-add_drug.R:585:1', 'test-add_drug.R:651:1', 'test-add_drug.R:721:1',
    'test-add_drug.R:735:1', 'test-add_ind.R:1:1', 'test-add_ind.R:401:1',
    'test-check_data_type.R:97:3', 'test-check_data_type.R:97:3',
    'test-check_data_type.R:97:3', 'test-check_data_type.R:97:3',
    'test-check_data_type.R:103:3', 'test-check_data_type.R:103:3',
    'test-check_data_type.R:103:3', 'test-check_data_type.R:103:3',
    'test-check_data_type.R:109:3', 'test-check_data_type.R:109:3',
    'test-check_data_type.R:109:3', 'test-check_data_type.R:109:3',
    'test-check_data_type.R:115:3', 'test-check_data_type.R:115:3',
    'test-check_data_type.R:115:3', 'test-check_data_type.R:115:3',
    'test-check_data_type.R:1:1', 'test-check_data_type.R:164:3',
    'test-check_data_type.R:164:3', 'test-check_data_type.R:164:3',
    'test-check_data_type.R:164:3', 'test-check_data_type.R:122:1',
    'test-check_data_type.R:171:1', 'test-check_dm.R:1:1',
    'test-check_dm.R:34:1', 'test-check_id_list.R:39:3',
    'test-check_id_list.R:39:3', 'test-check_id_list.R:39:3',
    'test-check_id_list.R:39:3', 'test-check_id_list.R:1:1',
    'test-check_id_list.R:117:3', 'test-check_id_list.R:117:3',
    'test-check_id_list.R:117:3', 'test-check_id_list.R:117:3',
    'test-check_id_list.R:123:3', 'test-check_id_list.R:123:3',
    'test-check_id_list.R:123:3', 'test-check_id_list.R:123:3',
    'test-check_id_list.R:46:1', 'test-compute_dispro.R:171:1',
    'test-compute_dispro.R:463:1', 'test-compute_interaction.R:47:1',
    'test-compute_interaction.R:70:1', 'test-compute_or_mod.R:1:1',
    'test-compute_or_mod.R:43:1', 'test-desc_cont.R:309:1',
    'test-desc_cont.R:370:1', 'test-desc_cont.R:428:1',
    'test-desc_facvar.R:265:1', 'test-desc_outcome.R:1:1', 'test-desc_rch.R:1:1',
    'test-desc_rch.R:46:1', 'test-desc_rch.R:141:1', 'test-desc_tto.R:1:1',
    'test-desc_tto.R:23:1', 'test-desc_tto.R:69:1', 'test-desc_tto.R:93:1',
    'test-extract_tto.R:1:1', 'test-extract_tto.R:30:1',
    'test-extract_tto.R:107:1', 'test-extract_tto.R:157:1',
    'test-extract_tto.R:193:1', 'test-get_drecno.R:1:1',
    'test-get_drecno.R:76:1', 'test-get_drecno.R:94:1',
    'test-get_drecno.R:112:1', 'test-get_drecno.R:250:1',
    'test-get_drecno.R:288:1', 'test-get_drecno.R:379:1',
    'test-get_drecno.R:413:1', 'test-get_drecno.R:711:1',
    'test-get_drecno.R:711:1', 'test-get_drecno.R:711:1',
    'test-get_drecno.R:711:1', 'test-get_llt_smq.R:111:1',
    'test-get_llt_smq.R:168:1', 'test-get_llt_soc.R:33:1',
    'test-get_llt_soc.R:49:1', 'test-query_data_type.R:30:3',
    'test-query_data_type.R:30:3', 'test-query_data_type.R:30:3',
    'test-query_data_type.R:30:3', 'test-query_data_type.R:1:1',
    'test-screen_drug.R:87:3', 'test-screen_drug.R:87:3',
    'test-screen_drug.R:87:3', 'test-screen_drug.R:87:3',
    'test-screen_drug.R:53:1', 'test-tb_meddra.R:1:1', 'test-tb_meddra.R:87:3',
    'test-tb_meddra.R:87:3', 'test-tb_meddra.R:87:3', 'test-tb_meddra.R:87:3',
    'test-tb_subset.R:1:1', 'test-tb_subset.R:235:1', 'test-tb_subset.R:371:1',
    'test-tb_subset.R:481:1', 'test-tb_subset.R:512:1', 'test-tb_subset.R:512:1',
    'test-tb_subset.R:512:1', 'test-tb_subset.R:512:1',
    'test-tb_vigibase.R:12:1', 'test-tb_vigibase.R:268:1',
    'test-tb_vigibase.R:324:1', 'test-tb_vigibase.R:396:1',
    'test-tb_vigibase.R:659:1', 'test-tb_who.R:1:1', 'test-tb_who.R:61:1',
    'test-texter.R:1:1', 'test-vigi_routine.R:22:1', 'test-vigi_routine.R:150:1',
    'test-vigi_routine.R:294:1', 'test-vigi_routine.R:294:1',
    'test-vigi_routine.R:294:1', 'test-vigi_routine.R:294:1',
    'test-vigi_routine.R:301:1', 'test-vigi_routine.R:342:1',
    'test-vigi_routine.R:370:1', 'test-vigi_routine.R:413:1',
    'test-vigi_routine.R:573:1', 'test-vigi_routine.R:704:1',
    'test-vigi_routine.R:732:1', 'test-vigi_routine.R:792:1',
    'test-vigi_routine.R:833:1', 'test-vigi_routine.R:872:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-vigi_routine.R:609:3'): error if no adr or drug cases found ──
  Expected `err[c("arg", "message", "class", "arg_type", "dataset")]` to equal `err_arrow[c("arg", "message", "class", "arg_type", "dataset")]`.
  Differences:
  `names(actual)`:   "arg" "message" NA "arg_type" "dataset"
  `names(expected)`: NA    "message" NA NA         NA       
  
  `actual[[1]]` is a character vector ('d1')
  `expected[[1]]` is NULL
  
  actual[[2]] vs expected[[2]]
  - "Drug code(s) in d1 didn't match any cases in `demo_data`."
  + "Replacing special names '.Names' is deprecated; use 'names' instead."
  
  `actual[[4]]` is a character vector ('drug')
  `expected[[4]]` is NULL
  
  `actual[[5]]` is a character vector ('demo_data')
  `expected[[5]]` is NULL
  
  ── Failure ('test-vigi_routine.R:653:3'): error if no adr or drug cases found ──
  Expected `err2[c("arg", "message", "class", "arg_type", "dataset")]` to equal `err2_arrow[c("arg", "message", "class", "arg_type", "dataset")]`.
  Differences:
  `names(actual)`:   "arg" "message" NA "arg_type" "dataset"
  `names(expected)`: NA    "message" NA NA         NA       
  
  `actual[[1]]` is a character vector ('a1')
  `expected[[1]]` is NULL
  
  actual[[2]] vs expected[[2]]
  - "Adr code(s) in a1 didn't match any cases in `demo_data`."
  + "Replacing special names '.Names' is deprecated; use 'names' instead."
  
  `actual[[4]]` is a character vector ('adr')
  `expected[[4]]` is NULL
  
  `actual[[5]]` is a character vector ('demo_data')
  `expected[[5]]` is NULL
  
  
  [ FAIL 2 | WARN 489 | SKIP 148 | PASS 587 ]
  Error:
  ! Test failures.
  Execution halted