Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary

Keywords

cran html htmlwidgets javascript package r react reactjs rstats web

Keywords from Contributors

shiny interactive mesh charts grammar serializer packaging web-app plotly-dash network-simulation
Last synced: 6 months ago · JSON representation

Repository

React for R

Basic Info
Statistics
  • Stars: 418
  • Watchers: 10
  • Forks: 37
  • Open Issues: 15
  • Releases: 13
Topics
cran html htmlwidgets javascript package r react reactjs rstats web
Created over 9 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---

# reactR reactR logo



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/reactR)](https://cran.r-project.org/package=reactR)
[![R-CMD-check](https://github.com/react-R/reactR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/react-R/reactR/actions/workflows/R-CMD-check.yaml)

`reactR` provides a set of convenience functions for using [`React`](https://reactjs.org/) in `R` with `htmlwidget` constructor templates and local JavaScript dependencies.  The `React` ecosystem is rich with components that can enhance `R` web and Shiny apps.  `scaffoldReactWidget()` helps build `htmlwidgets` to integrate these `React` components as `R` `htmlwidgets`.  `scaffoldReactShinyInput()` does the same for `Shiny` inputs.  The local dependency functions are modeled after the `html_dependency_*` functions from RStudio's [`rmarkdown`](https://github.com/rstudio/rmarkdown) package.

## Installation

You can install reactR from CRAN with `install.packages("reactR")`.  For the development version, please use `devtools` as shown below.

```R
# install.packages("devtools")
devtools::install_github("react-R/reactR")
```

## Creating htmlwidgets with React Components

To wrap a `React` component as an `htmlwidget`, please see the tutorial [htmlwidgets with reactR](https://react-r.github.io/reactR/articles/intro_htmlwidgets.html).  Also, there are a variety of examples in the [react-R Github organization](https://github.com/react-R).


[`reactable`](https://github.com/glin/reactable) is a very well-built `htmlwidget` leveraging this functionality.

## Shiny Outputs and Inputs

`htmlwidgets` built with `reactR` work well in Shiny as outputs.  In version `0.4.0` Alan Dipert has added the ability to easily create React-based official `Shiny` inputs with helpers and scaffolds.  Please see the [tutorial](https://react-r.github.io/reactR/articles/intro_inputs.html) for more details.

## Examples

Below are examples of using `reactR` directly.

```R
library(reactR)
library(htmltools)

browsable(tagList(
  tags$div(id = "app"),
  tags$script(
  "
    ReactDOM.render(
      React.createElement(
        'h1',
        null,
        'Powered by React'
      ),
      document.getElementById('app')
    )
  "
  ),
  #add core-js first to work in RStudio Viewer
  html_dependency_corejs(),
  html_dependency_react()
))
```

`reactR` uses the `V8` package if available to transform `JSX` and `ES2015` code with `babel`.

```R
library(reactR)
library(htmltools)

browsable(
  tagList(
    tags$div(id = "app"),
    tags$script(
      babel_transform('ReactDOM.render(

Powered By React/JSX

,document.getElementById("app"))') ), # add core-js shim first for React in older versions of RStudio Viewer #html_dependency_corejs(), html_dependency_react() ) ) ``` ## Contributing and Code of Conduct We welcome contributors and would love your participation. Please note that this project is released with a [Contributor Code of Conduct](https://github.com/react-R/reactR/blob/master/CONDUCT.md). By participating in this project you agree to abide by the terms.

Owner

  • Name: react-R
  • Login: react-R
  • Kind: organization

reactR and reactR widgets

GitHub Events

Total
  • Issues event: 4
  • Watch event: 8
  • Issue comment event: 7
  • Push event: 1
  • Pull request event: 1
  • Fork event: 2
Last Year
  • Issues event: 4
  • Watch event: 8
  • Issue comment event: 7
  • Push event: 1
  • Pull request event: 1
  • Fork event: 2

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 318
  • Total Committers: 9
  • Avg Commits per committer: 35.333
  • Development Distribution Score (DDS): 0.469
Past Year
  • Commits: 4
  • Committers: 2
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.25
Top Committers
Name Email Commits
timelyportfolio k****l@t****m 169
Alan Dipert a****n@d****g 133
Carson Sievert c****1@g****m 8
dependabot[bot] 4****] 2
DivadNojnarg d****n@y****m 2
stla l****p@y****r 1
InfinityLoop s****e@g****m 1
Greg Lin g****n@g****o 1
Barret Schloerke b****t@r****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 33
  • Total pull requests: 62
  • Average time to close issues: about 1 year
  • Average time to close pull requests: 8 months
  • Total issue authors: 19
  • Total pull request authors: 13
  • Average comments per issue: 3.3
  • Average comments per pull request: 1.58
  • Merged pull requests: 35
  • Bot issues: 0
  • Bot pull requests: 23
Past Year
  • Issues: 2
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 2 days
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 1.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 2
Top Authors
Issue Authors
  • timelyportfolio (7)
  • stla (5)
  • maxheld83 (3)
  • cpsievert (3)
  • TrantorM (1)
  • MarkusLang1987 (1)
  • jhk0530 (1)
  • ImranQUB (1)
  • DavZim (1)
  • apolinario (1)
  • swsoyee (1)
  • Coding-Crashkurse (1)
  • bryce-carson (1)
  • jienagu (1)
  • awb99 (1)
Pull Request Authors
  • dependabot[bot] (40)
  • timelyportfolio (14)
  • alandipert (10)
  • cpsievert (4)
  • swsoyee (2)
  • jhk0530 (2)
  • xari (2)
  • glin (2)
  • atusy (1)
  • jonocarroll (1)
  • DivadNojnarg (1)
  • schloerke (1)
  • stla (1)
  • olivroy (1)
Top Labels
Issue Labels
enhancement (6) question (3) help wanted (3) first time welcome (1)
Pull Request Labels
dependencies (40)

Packages

  • Total packages: 2
  • Total downloads:
    • cran 194,467 last-month
  • Total docker downloads: 86,816
  • Total dependent packages: 17
    (may contain duplicates)
  • Total dependent repositories: 48
    (may contain duplicates)
  • Total versions: 18
  • Total maintainers: 1
cran.r-project.org: reactR

React Helpers

  • Versions: 15
  • Dependent Packages: 16
  • Dependent Repositories: 46
  • Downloads: 194,467 Last month
  • Docker Downloads: 86,816
Rankings
Stargazers count: 1.3%
Downloads: 1.6%
Forks count: 2.2%
Dependent repos count: 3.6%
Dependent packages count: 3.8%
Average: 5.5%
Docker downloads count: 20.7%
Last synced: 6 months ago
conda-forge.org: r-reactr
  • Versions: 3
  • Dependent Packages: 1
  • Dependent Repositories: 2
Rankings
Dependent repos count: 20.1%
Stargazers count: 22.5%
Average: 25.2%
Dependent packages count: 29.0%
Forks count: 29.4%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • htmltools * imports
  • V8 * suggests
  • htmlwidgets >= 1.5.3 suggests
  • jsonlite * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • shiny * suggests
  • usethis * suggests
inst/www/core-js/package.json npm
  • @babel/cli ^7.7.7 development
  • @babel/core ^7.7.7 development
  • @babel/plugin-proposal-nullish-coalescing-operator ^7.7.4 development
  • @babel/plugin-proposal-optional-catch-binding ^7.7.4 development
  • @babel/plugin-proposal-optional-chaining ^7.7.5 development
  • @babel/plugin-transform-arrow-functions ^7.7.4 development
  • @babel/plugin-transform-block-scoped-functions ^7.7.4 development
  • @babel/plugin-transform-block-scoping ^7.7.4 development
  • @babel/plugin-transform-classes ^7.7.4 development
  • @babel/plugin-transform-computed-properties ^7.7.4 development
  • @babel/plugin-transform-destructuring ^7.7.4 development
  • @babel/plugin-transform-exponentiation-operator ^7.7.4 development
  • @babel/plugin-transform-literals ^7.7.4 development
  • @babel/plugin-transform-member-expression-literals ^7.7.4 development
  • @babel/plugin-transform-parameters ^7.7.7 development
  • @babel/plugin-transform-property-literals ^7.7.4 development
  • @babel/plugin-transform-shorthand-properties ^7.7.4 development
  • @babel/plugin-transform-spread ^7.7.4 development
  • @babel/plugin-transform-template-literals ^7.7.4 development
  • babel-loader ^8.0.6 development
  • babel-plugin-transform-es2015-modules-simple-commonjs ~0.3.0 development
  • babel-plugin-transform-for-of-as-array ^1.1.1 development
  • es-observable git+https://github.com/tc39/proposal-observable.git#bf4d87144b6189e793593868e3c022eb51a7d292 development
  • eslint ^6.8.0 development
  • eslint-import-resolver-webpack ^0.12.0 development
  • eslint-plugin-import ^2.19.1 development
  • eslint-plugin-node ^10.0.0 development
  • eslint-plugin-optimize-regex ^1.1.7 development
  • eslint-plugin-qunit ^4.0.0 development
  • eslint-plugin-sonarjs ^0.5.0 development
  • eslint-plugin-unicorn ^15.0.0 development
  • grunt ^1.0.4 development
  • grunt-cli ^1.3.2 development
  • grunt-contrib-clean ^2.0.0 development
  • grunt-contrib-copy ^1.0.0 development
  • grunt-contrib-uglify ^4.0.1 development
  • grunt-karma ^3.0.2 development
  • grunt-webpack ^3.1.3 development
  • karma ^4.4.1 development
  • karma-chrome-launcher ^3.1.0 development
  • karma-phantomjs-launcher ~1.0.4 development
  • karma-qunit ^4.0.0 development
  • lerna ^3.19.0 development
  • moon-unit ^0.2.2 development
  • phantomjs-prebuilt ~2.1.16 development
  • promises-aplus-tests ^2.1.2 development
  • puppeteer ~2.0.0 development
  • qunit ~2.9.3 development
  • webpack ^4.41.4 development
inst/www/mobx/package.json npm
  • @babel/core ^7.3.4 development
  • @babel/plugin-proposal-class-properties ^7.3.4 development
  • @babel/plugin-proposal-decorators ^7.3.0 development
  • @babel/plugin-transform-runtime ^7.3.4 development
  • @babel/preset-env ^7.3.4 development
  • @babel/runtime ^7.3.4 development
  • @types/jest ^24.0.11 development
  • @types/node ^11.11.3 development
  • @typescript-eslint/eslint-plugin ^1.4.2 development
  • babel-jest ^24.5.0 development
  • chalk ^1.1.3 development
  • coveralls ^3.0.3 development
  • eslint ^5.15.2 development
  • flow-bin ^0.59.0 development
  • fs-extra ^7.0.1 development
  • husky ^1.3.1 development
  • iterall ^1.2.2 development
  • jest ^24.5.0 development
  • lint-staged ^8.1.5 development
  • prettier ^1.16.4 development
  • rollup ^1.6.0 development
  • rollup-plugin-filesize ^6.0.1 development
  • rollup-plugin-node-resolve ^4.0.1 development
  • rollup-plugin-replace ^2.1.0 development
  • rollup-plugin-terser ^4.0.4 development
  • serializr ^1.5.1 development
  • shelljs ^0.8.3 development
  • size-limit ^1.3.3 development
  • tape ^4.10.1 development
  • ts-jest ^24.0.0 development
  • tslib ^1.9.3 development
  • typescript ^3.3.3333 development
package.json npm
  • @babel/core ^7.2.2 development
  • @babel/preset-env ^7.3.1 development
  • @babel/preset-react ^7.0.0 development
  • @rgrove/parse-xml ^1.1.1 development
  • babel-loader ^8.0.5 development
  • chai ^4.2.0 development
  • karma ^3.1.4 development
  • karma-chai ^0.1.0 development
  • karma-chrome-launcher ^2.2.0 development
  • karma-mocha ^1.3.0 development
  • karma-source-map-support ^1.3.0 development
  • karma-webpack ^4.0.0-rc.6 development
  • mocha ^5.2.0 development
  • react ^16.8.1 development
  • react-dom ^16.8.1 development
  • react-html-parser ^2.0.2 development
  • webpack ^4.27.1 development
  • webpack-cli ^3.1.2 development
yarn.lock npm
  • 657 dependencies
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite