Please see https://elong0527.github.io/metalite.table1/ for the full documentation. Here is only a minimal example:
library(metalite.table1) metalite_table1(~ AGE + SEX + RACE + BMIBLGR1 | ARM, data = r2rtf::r2rtf_adsl, id = "USUBJID")