Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Appsilon/shiny.react
Use React in Shiny applications.
https://github.com/Appsilon/shiny.react
r react rhinoverse shiny
Last synced: 3 months ago
JSON representation
Use React in Shiny applications.
- Host: GitHub
- URL: https://github.com/Appsilon/shiny.react
- Owner: Appsilon
- License: lgpl-3.0
- Created: 2020-12-02T08:13:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-20T15:07:34.000Z (6 months ago)
- Last Synced: 2024-07-27T17:56:49.435Z (3 months ago)
- Topics: r, react, rhinoverse, shiny
- Language: JavaScript
- Homepage: https://appsilon.github.io/shiny.react
- Size: 2.85 MB
- Stars: 95
- Watchers: 25
- Forks: 12
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-shiny-extensions - shiny.react - Tools for using React in Shiny. (UI Components / React)
- jimsghstars - Appsilon/shiny.react - Use React in Shiny applications. (JavaScript)
README
> _Use React in Shiny applications._
[![CRAN
status](https://www.r-pkg.org/badges/version/shiny.react)](https://cran.r-project.org/package=shiny.react)
[![cranlogs](https://cranlogs.r-pkg.org/badges/shiny.react)](https://CRAN.R-project.org/package=shiny.react)
[![total](https://cranlogs.r-pkg.org/badges/grand-total/shiny.react)](https://CRAN.R-project.org/package=shiny.react)
[![CI](https://github.com/Appsilon/shiny.react/actions/workflows/ci.yaml/badge.svg)](https://github.com/Appsilon/shiny.react/actions/workflows/ci.yaml)This R package enables using React in Shiny apps and is used e.g. by the [`shiny.fluent`](https://appsilon.github.io/shiny.fluent/) package.
It contains R and JS code which is independent from the React library (e.g. Fluent UI) that is being wrapped.## Installation
Stable version:
```r
install.packages("shiny.react")
```Development version:
```r
remotes::install_github("Appsilon/shiny.react")
```## Development
To build and install the package, run:
```sh
(cd js && yarn && yarn webpack)
Rscript -e 'devtools::document(); devtools::install()'
```## Testing
* `cd js && yarn lint` lints the JS code
* `cd js && yarn test` runs the unit tests for the JS code
* `Rscript -e "lintr::lint_package()"` runs linter for the R code
* `Rscript -e "devtools::test()"` runs unit tests for the R code## How to contribute?
If you want to contribute to this project please submit a regular PR, once you're done with a new feature or bug fix.
Reporting a bug is also helpful - please use [GitHub issues](https://github.com/Appsilon/shiny.react/issues) and describe your problem as detailed as possible.
## Appsilon
Appsilon is a **Posit (formerly RStudio) Full Service Certified Partner**.
Learn more at [appsilon.com](https://www.appsilon.com/).Get in touch [[email protected]](mailto:[email protected])
Explore the [Rhinoverse](https://rhinoverse.dev) - a family of R packages built around [Rhino](https://appsilon.github.io/rhino/)!