Skip to content

Commit cc74660

Browse files
committed
remove gather generic for now
1 parent 36b52ad commit cc74660

File tree

6 files changed

+41
-57
lines changed

6 files changed

+41
-57
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,5 @@ Suggests:
6060
dendextend
6161
LazyData: true
6262
Remotes:
63-
rstudio/crosstalk,
64-
hadley/tidyr#229
63+
rstudio/crosstalk
6564
RoxygenNote: 5.0.1

NAMESPACE

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ S3method(distinct_,plotly)
55
S3method(do_,plotly)
66
S3method(filter_,plotly)
77
S3method(fortify,SharedData)
8-
S3method(gather_,plotly)
98
S3method(geom2trace,GeomBar)
109
S3method(geom2trace,GeomBlank)
1110
S3method(geom2trace,GeomBoxplot)
@@ -106,9 +105,6 @@ export(event_data)
106105
export(export)
107106
export(filter)
108107
export(filter_)
109-
export(gather)
110-
export(gather_)
111-
export(gather_vars.plotly)
112108
export(geom2trace)
113109
export(get_figure)
114110
export(gg2list)
@@ -178,7 +174,6 @@ importFrom(dplyr,rename)
178174
importFrom(dplyr,rename_)
179175
importFrom(dplyr,select)
180176
importFrom(dplyr,select_)
181-
importFrom(dplyr,select_vars)
182177
importFrom(dplyr,slice)
183178
importFrom(dplyr,slice_)
184179
importFrom(dplyr,summarise)
@@ -218,8 +213,6 @@ importFrom(stats,is.leaf)
218213
importFrom(stats,quantile)
219214
importFrom(stats,setNames)
220215
importFrom(tibble,as_tibble)
221-
importFrom(tidyr,gather)
222-
importFrom(tidyr,gather_)
223216
importFrom(tidyr,unnest)
224217
importFrom(utils,browseURL)
225218
importFrom(utils,data)

R/imports.R

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,16 @@ dplyr::filter
160160
#' @export
161161
dplyr::filter_
162162

163-
#' @importFrom tidyr gather
164-
#' @name gather
165-
#' @rdname reexports
166-
#' @export
167-
tidyr::gather
168-
169-
#' @importFrom tidyr gather_
170-
#' @name gather_
171-
#' @rdname reexports
172-
#' @export
173-
tidyr::gather_
163+
# waiting on https://github.com/tidyverse/tidyr/pull/229
164+
#
165+
# #' @importFrom tidyr gather
166+
# #' @name gather
167+
# #' @rdname reexports
168+
# #' @export
169+
# tidyr::gather
170+
#
171+
# #' @importFrom tidyr gather_
172+
# #' @name gather_
173+
# #' @rdname reexports
174+
# #' @export
175+
# tidyr::gather_

R/plotly_data.R

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -197,34 +197,35 @@ transmute_.plotly <- function(.data, ..., .dots) {
197197

198198
# ---------------------------------------------------------------------------
199199
# tidyr methods
200+
# waiting on https://github.com/tidyverse/tidyr/pull/229
200201
# ---------------------------------------------------------------------------
201202

202-
#' @rdname plotly_data
203-
#' @export
204-
gather_.plotly <- function(data, key_col, value_col, gather_cols, na.rm = FALSE,
205-
convert = FALSE, factor_key = FALSE) {
206-
d <- plotly_data(data)
207-
set <- attr(d, "set")
208-
d <- tidyr::gather_(
209-
d, key_col = key_col, value_col = value_col, gather_cols = gather_cols,
210-
na.rm = na.rm, convert = convert, factor_key = factor_key
211-
)
212-
add_data(data, structure(d, set = set))
213-
}
214-
215-
#' @importFrom dplyr select_vars
216-
#' @rdname plotly_data
217-
#' @export
218-
gather_vars.plotly <- function(data, key_col, value_col, ...) {
219-
d <- plotly_data(data)
220-
if (n_dots(...) == 0) {
221-
setdiff(colnames(d), c(key_col, value_col))
222-
} else {
223-
unname(dplyr::select_vars(colnames(d), ...))
224-
}
225-
}
226-
227-
n_dots <- function(...) nargs()
203+
# #' @rdname plotly_data
204+
# #' @export
205+
# gather_.plotly <- function(data, key_col, value_col, gather_cols, na.rm = FALSE,
206+
# convert = FALSE, factor_key = FALSE) {
207+
# d <- plotly_data(data)
208+
# set <- attr(d, "set")
209+
# d <- tidyr::gather_(
210+
# d, key_col = key_col, value_col = value_col, gather_cols = gather_cols,
211+
# na.rm = na.rm, convert = convert, factor_key = factor_key
212+
# )
213+
# add_data(data, structure(d, set = set))
214+
# }
215+
#
216+
# #' @importFrom dplyr select_vars
217+
# #' @rdname plotly_data
218+
# #' @export
219+
# gather_vars.plotly <- function(data, key_col, value_col, ...) {
220+
# d <- plotly_data(data)
221+
# if (n_dots(...) == 0) {
222+
# setdiff(colnames(d), c(key_col, value_col))
223+
# } else {
224+
# unname(dplyr::select_vars(colnames(d), ...))
225+
# }
226+
# }
227+
#
228+
# n_dots <- function(...) nargs()
228229

229230

230231
# ---------------------------------------------------------------------------

man/plotly_data.Rd

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/reexports.Rd

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)