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.
Code block
new_code_block() · transform
Transform data with a plain R script (no wrapper function). Top-level assignments of plain values become controls: a factor renders a dropdown over its levels, a number a spin box, TRUE/FALSE a checkbox. A name starting with a dot stays private. Exports as idiomatic R with the current values written in.
| Argument | Description |
|---|---|
script | A string of R code transforming data into the result. Top-level assignments of plain values (literals, c(), factor(), as.Date()) become UI controls; every other statement is code. |
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. |
Search
new_search_block() · transform
Filter rows by case-insensitive substring match across all columns.