Running ‘testthat.R’ [12s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(admiralvaccine) # nolint
  > testthat::test_check("admiralvaccine")
  Joining with `by = join_by(USUBJID, FAOBJ, FATESTCD, FATPTREF, AVAL, FATPT, PARAMCD)`
  Joining with `by = join_by(USUBJID, FAOBJ, FATESTCD, FATPTREF, AVAL, FATPT, PARAMCD, ANL01FL)`
  Joining with `by = join_by(USUBJID, FAOBJ, FATESTCD, FATPTREF, AVAL, FATPT, PARAMCD)`
  Joining with `by = join_by(USUBJID, FAOBJ, FATESTCD, FATPTREF, AVAL, FATPT, PARAMCD)`
  Saving _problems/test-derive_vars_merged_vaccine-47.R
  Saving _problems/test-derive_vars_params-54.R
  Saving _problems/test-derive_vars_params-129.R
  Saving _problems/test-derive_vars_params-196.R
  Saving _problems/test-derive_vars_vaxdt-53.R
  [1] "VAX01DT"
  [1] "VAX02DT"
  [1] "VAX03DT"
  Saving _problems/test-derive_vars_vaxdt-110.R
  [ FAIL 6 | WARN 1 | SKIP 0 | PASS 29 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-derive_vars_merged_vaccine.R:41:3'): derive_vars_merged_vaccine Test 1: Merging EXTRT variable from EX to FACE ──
  Error in `left_join(dataset, add_data, by = vars2chr(by_vars), relationship = relationship)`: could not find function "left_join"
  Backtrace:
      ▆
   1. └─admiralvaccine::derive_vars_merged_vaccine(...) at test-derive_vars_merged_vaccine.R:41:3
   2.   └─admiral::derive_vars_merged(...)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6.           └─base (local) doTryCatch(return(expr), name, parentenv, handler)
  ── Error ('test-derive_vars_params.R:50:3'): derive_vars_params Test 1: Check if the variables in the lookup dataset getting merged
             properly ──
  Error in `left_join(dataset, add_data, by = vars2chr(by_vars), relationship = relationship)`: could not find function "left_join"
  Backtrace:
      ▆
   1. ├─admiralvaccine::derive_vars_params(...) at test-derive_vars_params.R:50:3
   2. │ ├─... %>% convert_blanks_to_na()
   3. │ └─admiral::derive_vars_merged(...)
   4. │   └─base::tryCatch(...)
   5. │     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6. │       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7. │         └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   8. └─admiral::convert_blanks_to_na(.)
  ── Error ('test-derive_vars_params.R:125:3'): derive_vars_params Test 2: Checking whether PARAM  getting concatenated with
                      only the existed variables ──
  Error in `left_join(dataset, add_data, by = vars2chr(by_vars), relationship = relationship)`: could not find function "left_join"
  Backtrace:
      ▆
   1. ├─admiralvaccine::derive_vars_params(...) at test-derive_vars_params.R:125:3
   2. │ ├─... %>% convert_blanks_to_na()
   3. │ └─admiral::derive_vars_merged(...)
   4. │   └─base::tryCatch(...)
   5. │     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6. │       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7. │         └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   8. └─admiral::convert_blanks_to_na(.)
  ── Error ('test-derive_vars_params.R:192:3'): derive_vars_params Test 3: Checking whether PARAM, PARCAT1 and PARCAT2 getting
             concatenated with only the existed variables ──
  Error in `left_join(dataset, add_data, by = vars2chr(by_vars), relationship = relationship)`: could not find function "left_join"
  Backtrace:
      ▆
   1. ├─admiralvaccine::derive_vars_params(...) at test-derive_vars_params.R:192:3
   2. │ ├─... %>% convert_blanks_to_na()
   3. │ └─admiral::derive_vars_merged(...)
   4. │   └─base::tryCatch(...)
   5. │     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6. │       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7. │         └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   8. └─admiral::convert_blanks_to_na(.)
  ── Error ('test-derive_vars_vaxdt.R:48:3'): derive_vars_vaxdt Test 1: Getting Vaccination dates from EX and
  check if output is merged with ADSL ──
  Error in `left_join(dataset, add_data, by = vars2chr(by_vars), relationship = relationship)`: could not find function "left_join"
  Backtrace:
      ▆
   1. └─admiralvaccine::derive_vars_vaxdt(...) at test-derive_vars_vaxdt.R:48:3
   2.   └─admiral::derive_vars_merged(...)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6.           └─base (local) doTryCatch(return(expr), name, parentenv, handler)
  ── Error ('test-derive_vars_vaxdt.R:105:3'): derive_vars_vaxdt Test 2: Check if Vaccination date variables are getting
            created when multiple vaccination given on same visit ──
  Error in `left_join(dataset, add_data, by = vars2chr(by_vars), relationship = relationship)`: could not find function "left_join"
  Backtrace:
      ▆
   1. └─admiralvaccine::derive_vars_vaxdt(...) at test-derive_vars_vaxdt.R:105:3
   2.   └─admiral::derive_vars_merged(...)
   3.     └─base::tryCatch(...)
   4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6.           └─base (local) doTryCatch(return(expr), name, parentenv, handler)
  
  [ FAIL 6 | WARN 1 | SKIP 0 | PASS 29 ]
  Error:
  ! Test failures.
  Execution halted