Skip to content

Commit

Permalink
Empty combineWidgets (fixes #6)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisGuillem committed Jan 12, 2017
1 parent c0e83f2 commit 3a15478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/combineWidgets.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ combineWidgets <- function(..., list = NULL, nrow = NULL, ncol = NULL, title = N
})
nwidgets <- length(widgets)

if (nwidgets == 0) return(combineWidgets(""))

# Get number of rows and cols
if (!is.null(nrow) && !is.null(ncol) && nrow * ncol < nwidgets) {
stop("There are too much widgets compared to the number of rows and columns")
Expand Down

0 comments on commit 3a15478

Please sign in to comment.