Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
‘sym_cond > ass_cond’: longer object
(#236)
Fixes #235 There was a warning thrown by the `get_code_dependency` that is now not visible + the code extraction works for `for` loops. Added 2 tests to prove that. No warning shown during ```r devtools::load_all("../teal.code") devtools::load_all("../teal") devtools::load_all(".") footnote_regression <- teal_transform_module( server = make_teal_transform_server(expression( plot <- plot + labs(caption = deparse(summary(fit)[[1]])) )) ) data <- teal_data() data <- within(data, { require(nestcolor) ADSL <- rADSL }) join_keys(data) <- default_cdisc_join_keys[names(data)] app <- init( data = data, modules = modules( tm_a_regression( label = "Regression", response = data_extract_spec( dataname = "ADSL", select = select_spec( label = "Select variable:", choices = "BMRKR1", selected = "BMRKR1", multiple = FALSE, fixed = TRUE ) ), regressor = data_extract_spec( dataname = "ADSL", select = select_spec( label = "Select variables:", choices = variable_choices(data[["ADSL"]], c("AGE", "SEX", "RACE")), selected = "AGE", multiple = TRUE, fixed = FALSE ) ), decorators = list(footnote_regression) ) ) ) if (interactive()) { shinyApp(app$ui, app$server) } ``` --------- Signed-off-by: Marcin <[email protected]> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: André Veríssimo <[email protected]>
- Loading branch information