-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathgtools-defunct.R
43 lines (42 loc) · 1.12 KB
/
gtools-defunct.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
40
41
42
43
#' Defunct Functions in package \code{gtools}
#'
#' The functions or variables listed here are no longer part of package
#' \code{gtools}.
#'
#' @param expression,collapse,x,\dots ignored
#'
#' @details
#'
#' \itemize{
#' \item \code{assert} is a defunct synonym for \code{\link[base]{stopifnot}}.
#' \item \code{addLast} has been replaced by \code{lastAdd}, which has the same
#' purpose but applied using different syntax.
#' \item \code{capture} and \code{capture.output} have been removed in favor of
#' \code{capture.output} from the \code{utils} package.
#' }
#'
#' @aliases gtools-defunct assert addLast capture sprint
#'
#' @seealso
#' \code{\link[base]{Defunct}},
#' \code{\link[base]{stopifnot}},
#' \code{\link[gtools]{lastAdd}},
#' \code{\link[utils]{capture.output}}
#' @keywords misc
#'
#' @rdname gtools-defunct
#' @export
assert <- function(...) {
.Defunct("stopifnot", "base")
}
#'
#' @rdname gtools-defunct
#' @export
capture <- function(expression, collapse = "\n") {
.Defunct("capture.output", "base")
}
#' @rdname gtools-defunct
#' @export
sprint <- function(x, ...) {
.Defunct("capture.output", "base")
}