Skip to content

Commit

Permalink
rename addNewWidget to widgetScaffold
Browse files Browse the repository at this point in the history
This is to eliminate ambiguity between the addNewWidget and createWidget functions (which sounds like they do something awfully similar).
  • Loading branch information
jjallaire committed Dec 3, 2014
1 parent 38e8b1a commit 599b52c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ S3method(as.tags,htmlwidget)
S3method(print,htmlwidget)
S3method(print,suppress_viewer)
export(JS)
export(addNewWidget)
export(createWidget)
export(saveWidget)
export(shinyRenderWidget)
export(shinyWidgetOutput)
export(sizingPolicy)
export(widgetScaffold)
import(RJSONIO)
import(htmltools)
2 changes: 1 addition & 1 deletion R/addwidget.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' @export
addNewWidget <- function(name, bower_pkg = NULL, edit = interactive()){
widgetScaffold <- function(name, bower_pkg = NULL, edit = interactive()){
if (!file.exists('DESCRIPTION')){
stop(
"You need to create a package to house your widget first!",
Expand Down

0 comments on commit 599b52c

Please sign in to comment.