blockr.extra
Utilities that don't fit a theme: the function block for custom R code inside a workflow, search, compare, labeling and more.
Async Function block
new_async_function_block() · transform
Transform data with a custom R function asynchronously. Requires mirai daemons. Click Run to execute.
Broom Summary
new_broom_summary_block() · transform
Model summary using broom (tidy/glance/augment). Works with any broom-compatible model.
Compare
new_compare_block() · transform
Compare two data frames on key columns and compute diff metrics on measurement columns.
Function block
new_function_block() · transform
Transform data with a custom R function in a CodeMirror editor (syntax highlighting, autocomplete, inline AI diff). UI auto-generated from function arguments.
| Argument | Description |
|---|---|
fn | A string of R code that evaluates to a function. The function must have 'data' as its first argument (the input data frame). Additional arguments with defaults become UI widgets. |
Function Var block
new_function_var_block() · transform
Transform multiple data frames (...) with a custom R function. UI auto-generated from function arguments.
| Argument | Description |
|---|---|
fn | A string of R code that evaluates to a function. The function must have '...' as its first argument (variadic data frame inputs). Additional arguments with defaults become UI widgets. |
Labeler
new_labeler_block() · transform
Add or edit column labels (the attr(col, "label") attribute shown in column pickers and table headers). Empty label removes it.
| Argument | Description |
|---|---|
labels | Named list mapping column names to label strings. An empty string removes the column's label. |
Latest
new_latest_block() · transform
Forward the value of whichever variadic input most recently changed (latest-wins merge / switch). Bridges multiple drill-down charts into one downstream block.
Search
new_search_block() · transform
Filter rows by case-insensitive substring match across all columns.