Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit e4f7c72

Browse files
committed
Fix S3 methods for dplyr generics
1 parent 70b3e72 commit e4f7c72

File tree

3 files changed

+49
-25
lines changed

3 files changed

+49
-25
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ Suggests:
4646
Encoding: UTF-8
4747
License: GPL-2 | file LICENSE
4848
LazyData: true
49-
RoxygenNote: 5.0.1
49+
RoxygenNote: 6.1.0.9000

NAMESPACE

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ S3method(apply_scale_defaults,scale_datetime)
88
S3method(apply_scale_defaults,scale_nominal)
99
S3method(apply_scale_defaults,scale_numeric)
1010
S3method(apply_scale_defaults,scale_ordinal)
11+
S3method(arrange_,ggvis)
12+
S3method(arrange_,reactive)
1113
S3method(as.character,prop_band)
1214
S3method(as.character,prop_constant)
1315
S3method(as.character,prop_reactive)
@@ -63,11 +65,15 @@ S3method(constant_vars,grouped_df)
6365
S3method(data_range,character)
6466
S3method(data_range,default)
6567
S3method(data_range,factor)
68+
S3method(distinct_,ggvis)
69+
S3method(distinct_,reactive)
6670
S3method(empty,default)
6771
S3method(explain,ggvis)
6872
S3method(extract_reactives,default)
6973
S3method(extract_reactives,ggvis_props)
7074
S3method(extract_reactives,prop_reactive)
75+
S3method(filter_,ggvis)
76+
S3method(filter_,reactive)
7177
S3method(format,ggvis_axis)
7278
S3method(format,ggvis_legend)
7379
S3method(format,ggvis_props)
@@ -88,8 +94,14 @@ S3method(formula,prop)
8894
S3method(fullseq,Date)
8995
S3method(fullseq,POSIXt)
9096
S3method(fullseq,numeric)
97+
S3method(group_by_,ggvis)
98+
S3method(group_by_,reactive)
99+
S3method(groups,ggvis)
100+
S3method(groups,reactive)
91101
S3method(max_rows,data.frame)
92102
S3method(max_rows,grouped_df)
103+
S3method(mutate_,ggvis)
104+
S3method(mutate_,reactive)
93105
S3method(new_prop,band)
94106
S3method(new_prop,call)
95107
S3method(new_prop,default)
@@ -130,14 +142,26 @@ S3method(prop_vega,prop_variable)
130142
S3method(remove_missing,data.frame)
131143
S3method(remove_missing,default)
132144
S3method(remove_missing,split_df)
145+
S3method(rename_,ggvis)
146+
S3method(rename_,reactive)
133147
S3method(rep,singular)
134148
S3method(scale_countable,default)
135149
S3method(scale_countable,scale_datetime)
136150
S3method(scale_countable,scale_logical)
137151
S3method(scale_countable,scale_nominal)
138152
S3method(scale_countable,scale_numeric)
139153
S3method(scale_countable,scale_ordinal)
154+
S3method(select_,ggvis)
155+
S3method(select_,reactive)
156+
S3method(slice_,ggvis)
157+
S3method(slice_,reactive)
158+
S3method(summarise_,ggvis)
159+
S3method(summarise_,reactive)
140160
S3method(to_csv,data.frame)
161+
S3method(transmute_,ggvis)
162+
S3method(transmute_,reactive)
163+
S3method(ungroup,ggvis)
164+
S3method(ungroup,reactive)
141165
S3method(value,default)
142166
S3method(value,reactive)
143167
S3method(vector_type,"NULL")
@@ -171,8 +195,6 @@ export(add_props)
171195
export(add_relative_scales)
172196
export(add_scale)
173197
export(add_tooltip)
174-
export(arrange_.ggvis)
175-
export(arrange_.reactive)
176198
export(auto_group)
177199
export(axis_props)
178200
export(band)
@@ -190,8 +212,6 @@ export(compute_tabulate)
190212
export(create_broker)
191213
export(create_input)
192214
export(default_options)
193-
export(distinct_.ggvis)
194-
export(distinct_.reactive)
195215
export(emit_arcs)
196216
export(emit_images)
197217
export(emit_paths)
@@ -202,8 +222,6 @@ export(emit_text)
202222
export(explain)
203223
export(export_png)
204224
export(export_svg)
205-
export(filter_.ggvis)
206-
export(filter_.reactive)
207225
export(fullseq)
208226
export(get_data)
209227
export(ggvis)
@@ -212,10 +230,6 @@ export(ggvisOutput)
212230
export(ggvis_message)
213231
export(ggvis_scale)
214232
export(group_by)
215-
export(group_by_.ggvis)
216-
export(group_by_.reactive)
217-
export(groups.ggvis)
218-
export(groups.reactive)
219233
export(handle_brush)
220234
export(handle_click)
221235
export(handle_hover)
@@ -266,16 +280,12 @@ export(legend_props)
266280
export(linked_brush)
267281
export(mainTopPanel)
268282
export(mark)
269-
export(mutate_.ggvis)
270-
export(mutate_.reactive)
271283
export(padding)
272284
export(plot_height)
273285
export(plot_width)
274286
export(prop)
275287
export(propname_to_scale)
276288
export(props)
277-
export(rename_.ggvis)
278-
export(rename_.reactive)
279289
export(resolution)
280290
export(save_spec)
281291
export(scale_datetime)
@@ -285,8 +295,6 @@ export(scale_numeric)
285295
export(scale_ordinal)
286296
export(scale_singular)
287297
export(scaled_value)
288-
export(select_.ggvis)
289-
export(select_.reactive)
290298
export(set_default_scale)
291299
export(set_dscale)
292300
export(set_options)
@@ -295,23 +303,27 @@ export(show_tooltip)
295303
export(sidebarBottomPage)
296304
export(sidebarBottomPanel)
297305
export(singular)
298-
export(slice_.ggvis)
299-
export(slice_.reactive)
300-
export(summarise_.ggvis)
301-
export(summarise_.reactive)
302-
export(transmute_.ggvis)
303-
export(transmute_.reactive)
304-
export(ungroup.ggvis)
305-
export(ungroup.reactive)
306306
export(up_down)
307307
export(vector_type)
308308
export(view_dynamic)
309309
export(view_static)
310310
export(waggle)
311311
export(zero_range)
312312
import(assertthat)
313+
importFrom(dplyr,arrange_)
314+
importFrom(dplyr,distinct_)
313315
importFrom(dplyr,explain)
316+
importFrom(dplyr,filter_)
314317
importFrom(dplyr,group_by)
318+
importFrom(dplyr,group_by_)
319+
importFrom(dplyr,groups)
320+
importFrom(dplyr,mutate_)
321+
importFrom(dplyr,rename_)
322+
importFrom(dplyr,select_)
323+
importFrom(dplyr,slice_)
324+
importFrom(dplyr,summarise_)
325+
importFrom(dplyr,transmute_)
326+
importFrom(dplyr,ungroup)
315327
importFrom(htmltools,knit_print.html)
316328
importFrom(htmltools,knit_print.shiny.tag)
317329
importFrom(htmltools,knit_print.shiny.tag.list)

R/dplyr.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ NULL
5353

5454
# Methods for ggvis objects ----------------------------------------------------
5555

56+
#' @importFrom dplyr groups
5657
#' @export
5758
#' @rdname dplyr-ggvis
5859
groups.ggvis <- function(x) {
5960
shiny::isolate(dplyr::groups(x$cur_data()))
6061
}
6162

63+
#' @importFrom dplyr group_by_
6264
#' @export
6365
#' @rdname dplyr-ggvis
6466
group_by_.ggvis <- function(.data, ..., .dots, add = FALSE) {
@@ -71,6 +73,7 @@ group_by_.ggvis <- function(.data, ..., .dots, add = FALSE) {
7173
})
7274
}
7375

76+
#' @importFrom dplyr ungroup
7477
#' @export
7578
#' @rdname dplyr-ggvis
7679
ungroup.ggvis <- function(x) {
@@ -80,6 +83,7 @@ ungroup.ggvis <- function(x) {
8083
}
8184

8285

86+
#' @importFrom dplyr summarise_
8387
#' @rdname dplyr-ggvis
8488
#' @export
8589
summarise_.ggvis <- function(.data, ..., .dots) {
@@ -91,6 +95,7 @@ summarise_.ggvis <- function(.data, ..., .dots) {
9195
})
9296
}
9397

98+
#' @importFrom dplyr mutate_
9499
#' @rdname dplyr-ggvis
95100
#' @export
96101
mutate_.ggvis <- function(.data, ..., .dots) {
@@ -102,6 +107,7 @@ mutate_.ggvis <- function(.data, ..., .dots) {
102107
})
103108
}
104109

110+
#' @importFrom dplyr arrange_
105111
#' @rdname dplyr-ggvis
106112
#' @export
107113
arrange_.ggvis <- function(.data, ..., .dots) {
@@ -113,6 +119,7 @@ arrange_.ggvis <- function(.data, ..., .dots) {
113119
})
114120
}
115121

122+
#' @importFrom dplyr select_
116123
#' @rdname dplyr-ggvis
117124
#' @export
118125
select_.ggvis <- function(.data, ..., .dots) {
@@ -124,6 +131,7 @@ select_.ggvis <- function(.data, ..., .dots) {
124131
})
125132
}
126133

134+
#' @importFrom dplyr filter_
127135
#' @rdname dplyr-ggvis
128136
#' @export
129137
filter_.ggvis <- function(.data, ..., .dots) {
@@ -135,6 +143,7 @@ filter_.ggvis <- function(.data, ..., .dots) {
135143
})
136144
}
137145

146+
#' @importFrom dplyr distinct_
138147
#' @rdname dplyr-ggvis
139148
#' @export
140149
distinct_.ggvis <- function(.data, ..., .dots) {
@@ -146,6 +155,7 @@ distinct_.ggvis <- function(.data, ..., .dots) {
146155
})
147156
}
148157

158+
#' @importFrom dplyr slice_
149159
#' @rdname dplyr-ggvis
150160
#' @export
151161
slice_.ggvis <- function(.data, ..., .dots) {
@@ -157,6 +167,7 @@ slice_.ggvis <- function(.data, ..., .dots) {
157167
})
158168
}
159169

170+
#' @importFrom dplyr rename_
160171
#' @rdname dplyr-ggvis
161172
#' @export
162173
rename_.ggvis <- function(.data, ..., .dots) {
@@ -168,6 +179,7 @@ rename_.ggvis <- function(.data, ..., .dots) {
168179
})
169180
}
170181

182+
#' @importFrom dplyr transmute_
171183
#' @rdname dplyr-ggvis
172184
#' @export
173185
transmute_.ggvis <- function(.data, ..., .dots) {

0 commit comments

Comments
 (0)