The 'UseClindata' function takes an optional argument 'lDomains' and performs the following steps:
Checks if the 'clindata' package is installed using 'requireNamespace'.
If the package is not installed, aborts with an error message using 'cli::cli_abort'.
If the package is installed, evaluates each element in 'lDomains' using 'eval(parse(text = .x))' and stores the results in 'clindata_list'.
Returns 'clindata_list'.
Value
clindata_list A list containing the results of evaluating each domain using 'eval(parse(text = .x))'.
Examples
dfs <- UseClindata(
list(
"dfSUBJ" = "clindata::rawplus_dm",
"dfAE" = "clindata::rawplus_ae"
)
)