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
- Use npm packages with htmlwidgets
- Create your shiny UI with the pug templating engine
- Include React/Vue in you shiny application
- Scope CSS selectors
- Use Lit web components
- And so much more...
Always start from an empty package and run
scaffold_* to set up the required basic structure.
Once the scaffold laid down you can either
watch for changes as you develop it.
You can then document and install the package to try it out.
Get the stable version from CRAN:
Get the development version from Github with
# install.packages("remotes") remotes::install_github("JohnCoene/packer")