This causes problems for zero-row data in ggvis:
dplyr::regroup(data.frame(a = numeric(0), g = character(0)), list(quote(g)))
# Error: upper value must be greater than lower value
# Slightly closer to the source of the problem:
dplyr:::grouped_df_impl(data.frame(a = numeric(0), g = character(0)), list(quote(g)), drop = TRUE)