mockDrugUtilisation: It creates a mock database for testing DrugUtilisation package
Description
It creates a mock database for testing DrugUtilisation package
Usage
mockDrugUtilisation(
numberIndividuals = 10,
...,
source = "local",
con = lifecycle::deprecated(),
writeSchema = lifecycle::deprecated(),
seed = lifecycle::deprecated()
)
Value
A cdm reference with the mock tables
Arguments
- numberIndividuals
Number of individuals in the mock cdm.
- ...
Tables to use as basis to create the mock. If some tables are
provided they will be used to construct the cdm object.
- source
Source for the mock cdm, it can either be 'local' or 'duckdb'.
- con
deprecated.
- writeSchema
deprecated.
- seed
deprecated.
Examples
Run this code# \donttest{
library(DrugUtilisation)
cdm <- mockDrugUtilisation()
cdm
# }
Run the code above in your browser using DataLab