Learn R Programming

blockr.dock

A docking layout manager provided by dockViewR can be used as front-end to a blockr board using this package.

Installation

You can install the development version of blockr.dock from GitHub with:

# install.packages("pak")
pak::pak("BristolMyersSquibb/blockr.dock")

Example

To start up a board for visualizing Sepal.Length against Sepal.Width for the iris dataset, we can run

library(blockr.dock)
library(blockr.core)

serve(
  new_dock_board(
    blocks = c(
      a = new_dataset_block("iris"),
      b = new_scatter_block(x = "Sepal.Length", y = "Sepal.Width")
    ),
    links = list(from = "a", to = "b", input = "data"),
    extensions = list(edit = new_edit_board_extension()),
    layout = list("edit", list("a", "b"))
  )
)

This is a read-only view of this board, as no blocks can be added or removed and block connectivity cannot be changed. We can however change parameters for the input data and visualization.

Copy Link

Version

Install

install.packages('blockr.dock')

Version

0.1.0

License

GPL (>= 3)

Maintainer

Nicolas Bennett

Last Published

December 11th, 2025

Functions in blockr.dock (0.1.0)

new_action

Board actions
blks_metadata

Get block metadata
new_dock_board

Dock board
new_dock_layout

Dock layout
new_edit_board_extension

Edit board extension
new_dock_stack

Colored stacks
show_panel

UI utilities
new_dock_extension

Dock extensions
dock_id

ID utilities