Home

Awesome

<div align="center"> <img src="docs/_media/packer.png" height = "200px"/> <!-- badges: start -->

License GitHub tag (latest by date) R-CMD-check Codecov test coverage

<!-- badges: end -->

Website | Installation | Get Started | Book

An opinionated framework for using JavaScript with R

</div>

At its core packer consists of functions to scaffold R packages powered by webpack and npm, these take the form of scaffolds which are built on top of packages. All of the scaffolds below thus need to be run from within an R package.

Things you can do with packer

Usage

Always start from an empty package and run scaffold_* to set up the required basic structure.

packer::scaffold_input("<name_of_input>")

Once the scaffold laid down you can either bundle the JavaScript or watch for changes as you develop it.

packer::bundle()

You can then document and install the package to try it out.

Install

Get the stable version from CRAN:

install.packages("packer")

Get the development version from Github with remotes.

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