Skip to content

Commit 3bef26d

Browse files
committed
Fix cyclical call
1 parent be5fb49 commit 3bef26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/group_by.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ group_by.tbl_graph <- function(.data, ..., add = FALSE) {
88
.register_graph_context(.data)
99
d_tmp <- as_tibble(.data)
1010
d_tmp <- group_by(d_tmp, ..., .add = add)
11+
.data <- set_graph_data(.data, ungroup(d_tmp))
1112
apply_groups(.data, d_tmp)
1213
}
1314
#' @export
@@ -100,7 +101,6 @@ is.grouped_tbl_graph <- function(x) {
100101
inherits(x, 'grouped_tbl_graph')
101102
}
102103
apply_groups <- function(graph, group) {
103-
graph <- set_graph_data(graph, ungroup(group))
104104
attr(graph, paste0(active(graph), '_group_attr')) <- attributes(group)
105105
if (!is.grouped_tbl_graph(graph)) {
106106
class(graph) <- c('grouped_tbl_graph', class(graph))

0 commit comments

Comments
 (0)