Running examples in ‘admiral-Ex.R’ failed
The error most likely occurred in:

> ### Name: call_derivation
> ### Title: Call a Single Derivation Multiple Times
> ### Aliases: call_derivation
> ### Keywords: high_order_function
> 
> ### ** Examples
> 
> library(dplyr, warn.conflicts = FALSE)
> adsl <- tribble(
+   ~STUDYID,   ~USUBJID,      ~TRTSDT,      ~TRTEDT,
+   "PILOT01", "01-1307",           NA,           NA,
+   "PILOT01", "05-1377", "2014-01-04", "2014-01-25",
+   "PILOT01", "06-1384", "2012-09-15", "2012-09-24",
+   "PILOT01", "15-1085", "2013-02-16", "2013-08-18",
+   "PILOT01", "16-1298", "2013-04-08", "2013-06-28"
+ ) %>%
+   mutate(
+     across(TRTSDT:TRTEDT, as.Date)
+   )
> 
> ae <- tribble(
+   ~STUDYID,  ~DOMAIN,  ~USUBJID,     ~AESTDTC,     ~AEENDTC,
+   "PILOT01",    "AE", "06-1384", "2012-09-15", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-15", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-23", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-23", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-15", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-15", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-15", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-15", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-23", "2012-09-29",
+   "PILOT01",    "AE", "06-1384", "2012-09-23", "2012-09-29",
+   "PILOT01",    "AE", "16-1298", "2013-06-08", "2013-07-06",
+   "PILOT01",    "AE", "16-1298", "2013-06-08", "2013-07-06",
+   "PILOT01",    "AE", "16-1298", "2013-04-22", "2013-07-06",
+   "PILOT01",    "AE", "16-1298", "2013-04-22", "2013-07-06",
+   "PILOT01",    "AE", "16-1298", "2013-04-22", "2013-07-06",
+   "PILOT01",    "AE", "16-1298", "2013-04-22", "2013-07-06"
+ )
> 
> adae <- ae %>%
+   derive_vars_merged(
+     dataset_add = adsl,
+     new_vars = exprs(TRTSDT, TRTEDT),
+     by_vars = exprs(USUBJID)
+   )
> 
> ## While `derive_vars_dt()` can only add one variable at a time, using `call_derivation()`
> ## one can add multiple variables in one go
> call_derivation(
+   dataset = adae,
+   derivation = derive_vars_dt,
+   variable_params = list(
+     params(dtc = AESTDTC, date_imputation = "first", new_vars_prefix = "AST"),
+     params(dtc = AEENDTC, date_imputation = "last", new_vars_prefix = "AEN")
+   ),
+   min_dates = exprs(TRTSDT),
+   max_dates = exprs(TRTEDT)
+ )
Warning: `assert_function_param()` was deprecated in admiraldev 0.5.0.
ℹ Please use `assert_function()` instead.
ℹ The deprecated feature was likely used in the admiral package.
  Please report the issue at <https://github.com/pharmaverse/admiral/issues>.
Error in `assert_function()`:
! `arg` must be a function but is `"derive_vars_dt"`
Backtrace:
    ▆
 1. └─admiral::call_derivation(...)
 2.   └─admiraldev::assert_function_param(...)
 3.     └─admiraldev::assert_function(arg = arg, params = params)
 4.       └─rlang::abort(err_msg)
Execution halted