From 599b52c4bac1fe985026a270564bdb9ba9ad3bec Mon Sep 17 00:00:00 2001 From: JJ Allaire Date: Wed, 3 Dec 2014 09:03:09 -0500 Subject: [PATCH] rename addNewWidget to widgetScaffold This is to eliminate ambiguity between the addNewWidget and createWidget functions (which sounds like they do something awfully similar). --- NAMESPACE | 2 +- R/addwidget.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 634034e3..5cd5e56e 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -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) diff --git a/R/addwidget.R b/R/addwidget.R index de8083e3..89f870c8 100644 --- a/R/addwidget.R +++ b/R/addwidget.R @@ -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!",