The goal of blockr.ui is to provide an alternative user interface for
{blockr.core}
.
You can install the development version of blockr.ui from GitHub with:
# install.packages("devtools")
devtools::install_github("cynkra/blockr.ui")
To run the demo app:
library(blockr.ui)
library(blockr.dplyr)
library(blockr.sdtm)
library(blockr.io)
Sys.setenv("DASHBOARD_TYPE" = "dock")
run_demo_app()
There are few options you can customize through setting up environment variables:
N_STACKS_COLORS
: how many colors to support in the stack color pickerInput. Default is 40.STACKS_COLOR_PALETTE
: the color palette type. Default isspectral
. We usehcl.colors
to setup the palette.DASHBOARD_TYPE
: eithergrid
to leverage{gridstackr}
ordock
for{dockVieweR}
. Default isdock
.DOCK_THEME
: whenDASHBOARD_TYPE
isdock
you can customize the dock skin. Choose amongc("light", "abyss", "dark", "vs", "dracula", "replit")
. Default isreplit
.
JS code is managed by esbuild
{charpente}
.
To create a new JS file do and compile the entire project:
charpente::create_js("file-name")
charpente::build_js()