Packer

An opinionated framework for using JavaScript with R.

Install

You can install packer from CRAN:

install.packages("packer")

Or the development version:

# install.packages("remotes")
remotes::install_github("JohnCoene/packer")

Examples

Some examples using packer:

# Set up for shiny
packer::scaffold_widget()

# Set up for a package
packer::scaffold_widget("path/to/pkg")

# Create a dependency
packer::html_dependency_js()

JavaScript for R Book

packer is featured in the JavaScript for R book.

# Check version
packer::packer_version()

Documentation