-
Notifications
You must be signed in to change notification settings - Fork 180
/
Copy pathdeprecated.R
39 lines (34 loc) · 1.09 KB
/
deprecated.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#' Deprecated functions
#'
#' A record of functions that have been deprecated.
#'
#' @name deprecated
#'
#' @inheritParams tq_mutate
#'
#' @details
#'
#' - `tq_transform()` - use [tq_transmute()]
#' - `tq_transform_xy()` - use [tq_transmute_xy()]
#' - `as_xts()` - use [timetk::tk_xts()]
#' - `as_tibble()` - use [timetk::tk_tbl()]
#' - `summarise_by_time()` - Moved to `timetk` package. Use [timetk::summarise_by_time()]
#'
#'
NULL
# tq_transform and tq_transform_xy - ----------------------------------------------------------------
# tq_transmute and tq_transmute_xy are now used.
#' @rdname deprecated
#' @export
tq_transform <- function(data, ohlc_fun = OHLCV, mutate_fun, col_rename = NULL, ...) {
# Throw error
.Defunct("tq_transmute",
msg = "`tq_transform` is deprecated, please use `tq_transmute` instead.")
}
#' @rdname deprecated
#' @export
tq_transform_xy <- function(data, x, y = NULL, mutate_fun, col_rename = NULL, ...) {
# Throw error
.Defunct("tq_transmute_xy",
msg = "`tq_transform_xy` is deprecated, please use `tq_transmute_xy` instead.")
}