Deparse an expression into a string
.
Examples
expr <- quote({
library(rtables)
basic_table() %>%
split_cols_by(var = "ARMCD") %>%
test_proportion_diff(
vars = "rsp", method = "cmh", variables = list(strata = "strat")
) %>%
build_table(df = dta)
})
h_concat_expr(expr)
#> [1] "{ library(rtables) basic_table() %>% split_cols_by(var = \"ARMCD\") %>% test_proportion_diff(vars = \"rsp\", method = \"cmh\", variables = list(strata = \"strat\")) %>% build_table(df = dta) }"