Skip to content

Commit 361e7d2

Browse files
committed
scaffoldReactInput => scaffoldReactShinyInput
1 parent 9dcd497 commit 361e7d2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ export(html_dependency_corejs)
1212
export(html_dependency_react)
1313
export(html_dependency_reacttools)
1414
export(reactMarkup)
15-
export(scaffoldReactInput)
15+
export(scaffoldReactShinyInput)
1616
export(scaffoldReactWidget)
1717
importFrom(htmltools,htmlDependency)

R/scaffold_input.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#' you wish to add the input to.
1616
#'
1717
#' @export
18-
scaffoldReactInput <- function(name, npmPkgs = NULL, edit = interactive()) {
18+
scaffoldReactShinyInput <- function(name, npmPkgs = NULL, edit = interactive()) {
1919
package <- getPackage()
2020

2121
file <- renderFile(

man/scaffoldReactInput.Rd renamed to man/scaffoldReactShinyInput.Rd

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/intro_inputs.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ install.packages(c("shiny", "devtools", "usethis", "reactR"))
5555

5656
## Scaffolding
5757

58-
To create a new widget you can call `scaffoldReactInput` to generate the basic
58+
To create a new widget you can call `scaffoldReactShinyInput` to generate the basic
5959
structure and build configuration. This function will:
6060

6161
* Create the .R, .js, and .json files required by your input;
@@ -75,7 +75,7 @@ usethis::create_package("~/colorpicker")
7575
# Inject the widget templating
7676
withr::with_dir(
7777
"~/colorpicker",
78-
reactR::scaffoldReactInput("colorpicker", list("react-color" = "^2.17.0"), edit = FALSE)
78+
reactR::scaffoldReactShinyInput("colorpicker", list("react-color" = "^2.17.0"), edit = FALSE)
7979
)
8080
```
8181

@@ -106,7 +106,7 @@ yarn run webpack
106106

107107
`yarn run webpack` is not strictly a `yarn` command. In fact, `yarn run` simply
108108
delegates to the [webpack](https://webpack.js.org/) program. Webpack's
109-
configuration is generated by `scaffoldReactInput` in the file
109+
configuration is generated by `scaffoldReactShinyInput` in the file
110110
`webpack.config.js`, but you can always change this configuration and/or modify
111111
the `yarn run webpack` command to suit your needs.
112112

0 commit comments

Comments
 (0)