Development

Prerequisites

Installation

Install dependencies for R:

# install.packages("devtools")
devtools::install_dev_deps()

Install dependencies for JS:

Building

Build the JS/CSS bundle (outputs to inst/htmlwidgets):

Then reload (devtools::load_all()) or reinstall the package.

These generated files should be added in their own, separate commit, preferably only once per branch.

Testing

Run R tests:

devtools::test()

# With test coverage (requires DT)
# install.packages("DT")
covr::report()

Run JS tests:

Linting and Formatting

Lint and format the JS/CSS: