Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johncoene/packer
webpack + npm + R = ❤️
https://github.com/johncoene/packer
javascript r rstats webpack
Last synced: 6 days ago
JSON representation
webpack + npm + R = ❤️
- Host: GitHub
- URL: https://github.com/johncoene/packer
- Owner: JohnCoene
- License: other
- Created: 2020-07-21T19:45:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-05T12:40:23.000Z (5 months ago)
- Last Synced: 2024-10-15T00:51:46.329Z (2 months ago)
- Topics: javascript, r, rstats, webpack
- Language: R
- Homepage: https://packer.john-coene.com/
- Size: 2.98 MB
- Stars: 145
- Watchers: 6
- Forks: 6
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![License](https://img.shields.io/badge/license-MIT-green?style=flat-square)
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/JohnCoene/packer?label=latest&style=flat-square)
[![R-CMD-check](https://github.com/JohnCoene/packer/workflows/R-CMD-check/badge.svg)](https://github.com/JohnCoene/packer/actions)
[![Codecov test coverage](https://codecov.io/gh/JohnCoene/packer/branch/master/graph/badge.svg)](https://app.codecov.io/gh/JohnCoene/packer?branch=master)[Website](https://packer.john-coene.com/) | [Installation](https://packer.john-coene.com/#/guide/installation) | [Get Started](https://packer.john-coene.com/#/guide/getting-started) | [Book](https://book.javascript-for-r.com/webpack-intro.html)
## An opinionated framework for using JavaScript with R
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
- Bundle JavaScript files for golem
- Scope CSS selectors
- Use Lit web components
- And so much more...### Usage
Always start from an empty package and run `scaffold_*` to set up the required basic structure.
```r
packer::scaffold_input("")
```Once the scaffold laid down you can either `bundle` the JavaScript or `watch` for changes as you develop it.
```r
packer::bundle()
```You can then document and install the package to try it out.
## Install
Get the stable version from CRAN:
```r
install.packages("packer")
```Get the development version from Github with `remotes`.
```r
# install.packages("remotes")
remotes::install_github("JohnCoene/packer")
```