Generates reproducible R code that mirrors the current QuickExplore session
and provides clipboard-copy (via JS) and download-as-.R handlers.
Arguments
- id
Character string. The Shiny module namespace identifier.
- selected_dataset
A
shiny::reactiveVal()holding the file path of the active dataset, orNULLwhen none is loaded.- filter_expr
A reactive expression returning the dplyr filter string typed in the Explore Data tab (may be
""orNULL).- selected_vars
A reactive expression returning a character vector of variable names chosen in the Explore Data tab (may be
NULL/ empty).- group_var
A reactive expression returning the grouping variable name selected in the Summary panel (
""means no grouping).- summary_vars
A reactive expression returning variable names used for summary statistics (
NULL/ empty means all variables).- output_format
A reactive expression returning the converter output format:
"csv","rds","xlsx","json", or"xpt".- csv_delim
A reactive returning the CSV delimiter character (default
",").- json_pretty
A reactive returning
TRUEto pretty-print JSON.- crosstab_row
A reactive returning the cross-tab row variable name (
""= none selected).- crosstab_col
A reactive returning the cross-tab column variable name (
""= none selected).- crosstab_strat
A reactive returning the stratification variable name (
""= unstratified).