diff --git a/CRAN-RELEASE b/CRAN-RELEASE
index d2a8495..1496baf 100644
--- a/CRAN-RELEASE
+++ b/CRAN-RELEASE
@@ -1,2 +1,2 @@
-This package was submitted to CRAN on 2019-07-07.
-Once it is accepted, delete this file and tag the release (commit b28e138662).
+This package was submitted to CRAN on 2021-02-20.
+Once it is accepted, delete this file and tag the release (commit e167785db5).
diff --git a/DESCRIPTION b/DESCRIPTION
index 7134e0c..d5b5f5e 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,13 +1,13 @@
Package: reactR
Type: Package
Title: React Helpers
-Version: 0.4.3
-Date: 2020-07-12
+Version: 0.4.4
+Date: 2021-02-20
Authors@R: c(
person(
"Facebook", "Inc"
, role = c("aut", "cph")
- , comment = "React library in lib, https://facebook.github.io/react; see AUTHORS for full list of contributors"
+ , comment = "React library in lib, https://reactjs.org/; see AUTHORS for full list of contributors"
),
person(
"Michel","Weststrate",
@@ -39,7 +39,7 @@ Encoding: UTF-8
Imports:
htmltools
Suggests:
- htmlwidgets (>= 0.6.0),
+ htmlwidgets (>= 1.5.3),
rmarkdown,
shiny,
V8,
diff --git a/NEWS.md b/NEWS.md
index 2e8d4f7..e9032fc 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,13 @@
+# reactR 0.4.4
+
+* Update react to `16.12.0`
+
+* Add `style-loader` and `css-loader` to webpack config [pull 50](https://github.com/react-R/reactR/pull/50)
+
+* Update to `PACKAGE::widget_html.WIDGETNAME` for new `htmlwidgets` convention [pull 49](https://github.com/react-R/reactR/pull/49)
+
+* Clean up template [pull 45](https://github.com/react-R/reactR/pull/45)
+
# reactR 0.4.3
* Add element to Shiny input [pull 41](https://github.com/react-R/reactR/pull/41)
@@ -60,7 +70,7 @@
* Update to react `15.5.0`
* Update to babel `6.24.0`
-* Add [fluent-ui(fabric)](https://developer.microsoft.com/en-us/fluentui#/get-started#fluent-ui-react) example
+* Add fluent-ui(fabric) example
* Build doc site with `pkgdown`
# reactR 0.1.1
diff --git a/R/meta.R b/R/meta.R
index 9736104..35d322e 100644
--- a/R/meta.R
+++ b/R/meta.R
@@ -1,3 +1,3 @@
#'@keywords internal
-react_version <- function(){'16.12.0'}
+react_version <- function(){'17.0.0'}
babel_version <- function(){'6.26.0'}
\ No newline at end of file
diff --git a/R/scaffold_input.R b/R/scaffold_input.R
index fc9df6a..fa86c3b 100644
--- a/R/scaffold_input.R
+++ b/R/scaffold_input.R
@@ -4,10 +4,10 @@
#' R package.
#'
#' @param name Name of input
-#' @param npmPkgs Optional \href{https://npmjs.com/}{NPM} packages upon which
+#' @param npmPkgs Optional \href{https://www.npmjs.com/}{NPM} packages upon which
#' this input is based which will be used to populate \code{package.json}.
#' Should be a named list of names to
-#' \href{https://docs.npmjs.com/files/package.json#dependencies}{versions}.
+#' \href{https://docs.npmjs.com/files/package.json/}{versions}.
#' @param edit Automatically open the input's source files after creating the
#' scaffolding.
#'
diff --git a/R/scaffold_widget.R b/R/scaffold_widget.R
index 4240f1b..6022de9 100644
--- a/R/scaffold_widget.R
+++ b/R/scaffold_widget.R
@@ -4,10 +4,10 @@
#' R package.
#'
#' @param name Name of widget
-#' @param npmPkgs Optional \href{https://npmjs.com/}{NPM} packages upon which
+#' @param npmPkgs Optional \href{https://www.npmjs.com/}{NPM} packages upon which
#' this widget is based which will be used to populate \code{package.json}.
#' Should be a named list of names to
-#' \href{https://docs.npmjs.com/files/package.json#dependencies}{versions}.
+#' \href{https://docs.npmjs.com/files/package.json/}{versions}.
#' @param edit Automatically open the widget's JavaScript source file after
#' creating the scaffolding.
#'
diff --git a/README.Rmd b/README.Rmd
index ee8ae1d..cd6d472 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -19,7 +19,7 @@ knitr::opts_chunk$set(
[![Travis-CI Build Status](https://travis-ci.org/react-R/reactR.svg?branch=master)](https://travis-ci.org/react-R/reactR)
[![Slack Status](https://reactr-slackin.herokuapp.com/badge.svg)](https://reactr-slackin.herokuapp.com/)
-`reactR` provides a set of convenience functions for using [`React`](https://facebook.github.io/react) 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.
+`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
diff --git a/README.md b/README.md
index 7e60227..84000b3 100644
--- a/README.md
+++ b/README.md
@@ -10,15 +10,14 @@ Status](https://travis-ci.org/react-R/reactR.svg?branch=master)](https://travis-
Status](https://reactr-slackin.herokuapp.com/badge.svg)](https://reactr-slackin.herokuapp.com/)
`reactR` provides a set of convenience functions for using
-[`React`](https://facebook.github.io/react) 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.
+[`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
diff --git a/cran-comments.md b/cran-comments.md
index df4372e..fabd359 100644
--- a/cran-comments.md
+++ b/cran-comments.md
@@ -1,3 +1,9 @@
+Resubmit to fix new problematic link found in the latest check; not sure why this was not reported in last check
+
+Resubmit 2 to fix last remaining link in check; sorry I missed this one
+
+Resubmit 1 to fix links for CRAN
+
## Test environments
* local Windows 10 install, R 3.6.2
* rhub check_for_cran
diff --git a/docs/404.html b/docs/404.html
index 02f308a..becafbf 100644
--- a/docs/404.html
+++ b/docs/404.html
@@ -74,7 +74,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -82,7 +82,7 @@
-
-
+
@@ -115,7 +115,7 @@
-
-
+
diff --git a/docs/CONDUCT.html b/docs/CONDUCT.html
index de00773..303102b 100644
--- a/docs/CONDUCT.html
+++ b/docs/CONDUCT.html
@@ -74,7 +74,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -82,7 +82,7 @@
-
-
+
@@ -115,7 +115,7 @@
-
-
+
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
index b567d5f..e47d2e4 100644
--- a/docs/LICENSE-text.html
+++ b/docs/LICENSE-text.html
@@ -74,7 +74,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -82,7 +82,7 @@
-
-
+
@@ -115,7 +115,7 @@
-
-
+
diff --git a/docs/articles/index.html b/docs/articles/index.html
index af0261f..e08ff3e 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -74,7 +74,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -82,7 +82,7 @@
-
-
+
@@ -115,7 +115,7 @@
-
-
+
diff --git a/docs/articles/intro_htmlwidgets.html b/docs/articles/intro_htmlwidgets.html
index bddaf6f..3467c8f 100644
--- a/docs/articles/intro_htmlwidgets.html
+++ b/docs/articles/intro_htmlwidgets.html
@@ -37,7 +37,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -45,7 +45,7 @@
-
-
+
@@ -77,7 +77,7 @@
-
-
+
@@ -98,7 +98,7 @@ Authoring htmlwidgets powered by React with reactR
Alan Dipert
Carson Sievert
- 2020-07-12
+ 2021-02-22
Source: vignettes/intro_htmlwidgets.Rmd
intro_htmlwidgets.Rmd
@@ -107,20 +107,20 @@ 2020-07-12
-The htmlwidgets package provides a framework for creating R bindings to JavaScript libraries. Using the htmlwidgets package alone, it’s not necessarily straight-forward to create an R binding to a React-powered JavaScript library. The reactR package builds on the htmlwidgets framework to make it much easier to author htmlwidgets that are powered by React. This vignette will show you how to effectively leverage reactR to build an htmlwidgets package that interfaces with react-sparklines React JavaScript library.
+The htmlwidgets package provides a framework for creating R bindings to JavaScript libraries. Using the htmlwidgets package alone, it’s not necessarily straight-forward to create an R binding to a React-powered JavaScript library. The reactR package builds on the htmlwidgets framework to make it much easier to author htmlwidgets that are powered by React. This vignette will show you how to effectively leverage reactR to build an htmlwidgets package that interfaces with react-sparklines React JavaScript library.
Software pre-requisites
In order to develop a reactR widget, you’ll need to install R and optionally RStudio. If you’re on Windows, you should also install Rtools.
-For an excellent general introduction to R package concepts, check out the R packages online book.
+For an excellent general introduction to R package concepts, check out the R packages online book.
In addition, you’ll need to install the following JavaScript tools on your machine:
-
Node.js: JavaScript engine and runtime for development outside of browsers. Provides the
node
and npm
commands.
-
-Yarn: Command-line dependency management tool, provides the
yarn
command.
+Yarn: Command-line dependency management tool, provides the yarn
command.
To follow along in this vignette, you’ll also need the following R packages:
@@ -137,7 +137,7 @@
@@ -152,7 +152,7 @@
-yarn install
downloads all of the dependencies listed in package.json
and creates a new file, yarn.lock
. You should add this file to revision control. It will be updated whenever you change dependencies and run yarn install
. Note: you only need to run it after modifying package.json. For further documentation on yarn install
, see the yarn documentation.
+yarn install
downloads all of the dependencies listed in package.json
and creates a new file, yarn.lock
. You should add this file to revision control. It will be updated whenever you change dependencies and run yarn install
. Note: you only need to run it after modifying package.json. For further documentation on yarn install
, see the yarn documentation.
yarn run webpack
compiles the ES2015 JavaScript source file at srcjs/sparklines.js
into inst/htmlwidgets/sparklines.js
. The later file is one actually used by the R package and includes all the relevant JavaScript dependencies in a version of JavaScript that most browsers understand. Note that, if you add --mode=development
to the end of this command, it will include a source map is included with the compiled JavaScript, which makes JavaScript debugging much easier, but hopefully you won’t need to do much of any JavaScript debugging.
yarn run webpack
is not strictly a yarn
command. In fact, yarn run
simply delegates to the webpack program. Webpack’s configuration is generated by scaffoldReactWidget
in the file webpack.config.js
, but you can always change this configuration and/or modify the yarn run webpack
command to suit your needs.
diff --git a/docs/articles/intro_inputs.html b/docs/articles/intro_inputs.html
index a952534..1fe21b4 100644
--- a/docs/articles/intro_inputs.html
+++ b/docs/articles/intro_inputs.html
@@ -37,7 +37,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -45,7 +45,7 @@
-
-
+
@@ -77,7 +77,7 @@
-
-
+
@@ -97,7 +97,7 @@
Authoring inputs powered by React with reactR
Alan Dipert and Carson Sievert
- 2020-07-12
+ 2021-02-22
Source: vignettes/intro_inputs.Rmd
intro_inputs.Rmd
@@ -106,7 +106,7 @@ 2020-07-12
-Shiny comes with a large library of input widgets for collecting input from the user and conveying input data to R.
+Shiny comes with a large library of input widgets for collecting input from the user and conveying input data to R.
If you want a kind of input not provided by Shiny — like a color picker, or a different kind of slider — you’ve always been able to build your own. Shiny’s input system is extensible. All that’s required is an understanding of certain conventions and a little custom JavaScript.
reactR provides additional tools to ease the creation of new Shiny inputs implemented using React. In the following tutorial, we will demonstrate these tools by implementing a new Shiny color picker input that wraps the react-color library.
@@ -114,14 +114,14 @@
Software pre-requisites
In order to develop a reactR Shiny input, you’ll need to install R and optionally RStudio. If you’re on Windows, you should also install Rtools.
-For an excellent general introduction to R package concepts, check out the R packages online book.
+For an excellent general introduction to R package concepts, check out the R packages online book.
In addition, you’ll need to install the following JavaScript tools on your machine:
-
Node.js: JavaScript engine and runtime for development outside of browsers. Provides the
node
and npm
commands.
-
-Yarn: Command-line dependency management tool, provides the
yarn
command.
+Yarn: Command-line dependency management tool, provides the yarn
command.
To follow along in this vignette, you’ll also need the following R packages:
@@ -138,7 +138,7 @@
# Create the R package (rstudio=TRUE is recommended if you're not already comfortable with your terminal)
usethis::create_package("~/colorpicker", rstudio = TRUE)
# Scaffold initial input implementation files
-withr::with_dir(
+withr::with_dir(
"~/colorpicker",
reactR::scaffoldReactShinyInput("colorpicker", list("react-color" = "^2.17.0"), edit = FALSE)
)
@@ -153,7 +153,7 @@
yarn install
yarn run webpack
-yarn install
downloads all of the dependencies listed in package.json
and creates a new file, yarn.lock
. You should add this file to revision control. It will be updated whenever you change dependencies and run yarn install
. Note: you only need to run it after modifying package.json. For further documentation on yarn install
, see the yarn documentation.
+yarn install
downloads all of the dependencies listed in package.json
and creates a new file, yarn.lock
. You should add this file to revision control. It will be updated whenever you change dependencies and run yarn install
. Note: you only need to run it after modifying package.json. For further documentation on yarn install
, see the yarn documentation.
yarn run webpack
compiles the modern JavaScript with JSX source file at srcjs/colorpicker.jsx
into www/colorpicker/colorpicker/colorpicker.js
. The latter file is the one actually used by the R package and includes all the relevant JavaScript dependencies in a dialect of JavaScript that most browsers understand.
yarn run webpack
is not strictly a yarn
command. In fact, yarn run
simply delegates to the webpack program. Webpack’s configuration is generated by scaffoldReactShinyInput
in the file webpack.config.js
, but you can always change this configuration and/or modify the yarn run webpack
command to suit your needs.
diff --git a/docs/articles/intro_reactR.html b/docs/articles/intro_reactR.html
index b597150..015570e 100644
--- a/docs/articles/intro_reactR.html
+++ b/docs/articles/intro_reactR.html
@@ -37,7 +37,7 @@
reactR
- 0.4.3
+ 0.4.4
@@ -45,7 +45,7 @@
-
-
+
@@ -77,7 +77,7 @@
-
-
+
@@ -91,13 +91,13 @@
-