blockr 0.0.2
Breaking changes
- Change blocks and fields constructor names to
new_*_block
and new_*_field
. For instance, for the select block,
users are now supposed to use new_select_block()
and not select_block
.
- Remove
data
from block constructor:
new_select_block <- function(columns = character(), ...) {
...
}
New features
- New validation functions:
validate_field()
and validate_block()
to check that
values are consistent with data. These are used to then propagate any error to the user via JavaScript.
- Evaluation stops whenever a block isn't valid and the app should not crash.
- We can now instantiate block outside the stack with default parameter values (or use the old way with constructors):
# New way
data_blk <- new_dataset_block(selected = "lab", package = "blockr.data")
select_blk <- new_select_block("STUDYID")
stack <- new_stack(data_blk, select_blk)
# Old way
stack <- new_stack(new_data_block, new_select_block)