From d0e5d98bd619dd17c1ed9a5ae1031afd705c7b88 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Fri, 28 Jun 2024 07:35:56 -0500 Subject: [PATCH] Drop `is.value()` (#187) Since it's never used and `evaluate()` doesn't produce an object of this type. --- NAMESPACE | 1 - NEWS.md | 1 + R/evaluation.R | 3 --- man/is.message.Rd | 3 --- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index aea68ec..474db89 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -19,7 +19,6 @@ export(is.error) export(is.message) export(is.recordedplot) export(is.source) -export(is.value) export(is.warning) export(new_output_handler) export(parse_all) diff --git a/NEWS.md b/NEWS.md index 64003fe..ef47b84 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,6 @@ # evaluate (development version) +* `is.value()` has been removed since it tests for an object that evaluate never creates. * `parse_all()` no longer has a default method, which will generate better errors if you pass in something unexpectected. * The package now depends on R 4.0.0 in order to decrease our maintenance burden. * `evaluate()` automatically strips calls from conditions emitted by top-level code (these incorrectly get calls because they're wrapped inside `eval()`) (#150). diff --git a/R/evaluation.R b/R/evaluation.R index bec4969..4f84089 100644 --- a/R/evaluation.R +++ b/R/evaluation.R @@ -69,9 +69,6 @@ is.warning <- function(x) inherits(x, "warning") is.error <- function(x) inherits(x, "error") #' @rdname is.message #' @export -is.value <- function(x) inherits(x, "value") -#' @rdname is.message -#' @export is.source <- function(x) inherits(x, "source") #' @rdname is.message #' @export diff --git a/man/is.message.Rd b/man/is.message.Rd index 7e1c821..fa7ea9b 100644 --- a/man/is.message.Rd +++ b/man/is.message.Rd @@ -4,7 +4,6 @@ \alias{is.message} \alias{is.warning} \alias{is.error} -\alias{is.value} \alias{is.source} \alias{is.recordedplot} \title{Object class tests} @@ -15,8 +14,6 @@ is.warning(x) is.error(x) -is.value(x) - is.source(x) is.recordedplot(x)