Skip to content

Commit 969bfb3

Browse files
DEPRECATE: Updated help pages accordingly [#113]
1 parent d7f1be5 commit 969bfb3

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

R/progress.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#' Creates and Signals a Progression Condition
22
#'
3+
#' _WARNING:_ `progress()` is deprecated - don't use.
4+
#'
35
#' @param \ldots Arguments pass to [progression()].
46
#'
57
#' @param call (expression) A call expression.
@@ -13,8 +15,10 @@
1315
#' @keywords internal
1416
#' @export
1517
progress <- function(..., call = sys.call()) {
16-
.Deprecated(msg = "progress() is deprecated", package = .packageName)
17-
18+
action <- getOption("progressr.progress", "deprecated")
19+
signal <- switch(action, deprecated = .Deprecated, defunct = .Defunct)
20+
signal(msg = sprintf("progress() is %s", action), package = .packageName)
21+
1822
args <- list(...)
1923
if (length(args) == 1L && inherits(args[[1L]], "condition")) {
2024
cond <- args[[1L]]

man/progress.Rd

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

man/progression.Rd

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

0 commit comments

Comments
 (0)