Return reproducible data filtering code.
code(
x,
include_source = TRUE,
include_methods = c(".pre_filtering", ".post_filtering", ".run_binding"),
include_action = c("pre_filtering", "post_filtering", "run_binding"),
modifier = .repro_code_tweak,
mark_step = TRUE,
...
)
tidy_source output storing reproducible code for generating final step data.
Cohort object.
If `TRUE` source generating code will be included.
Which methods definition should be included in the result.
Which action should be returned in the result. `pre_filtering`/`.post_filtering` - to include data transformation before/after filtering. s`run_binding` - data binding transformation.
A function taking data frame (storing reproducible code metadata) as an argument, and returning data frame with `expr` column which is then combined into a single expression (final result of `get_code`). See .repro_code_tweak.
Include information which filtering step is performed.
Other parameters passed to tidy_source.
cohort-methods