From 38b770d77ecf24aa6147c399050a6e610e780056 Mon Sep 17 00:00:00 2001 From: Lionel Henry Date: Thu, 27 Jun 2024 11:56:13 +0200 Subject: [PATCH] Mention removal of `env_unlock()` in NEWS --- NEWS.md | 5 +++++ R/env.R | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 8a569bdd3..d88a55d41 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,10 @@ # rlang (development version) +* `env_unlock()` is now defunct because recent versions of R no long + make it possible to unlock an environment. Make sure to use an up-to-date + version of pkgload (>= 1.4.0) following this change. + + # rlang 1.1.4 * Added missing C level `r_dyn_raw_push_back()` and `r_dyn_chr_push_back()` diff --git a/R/env.R b/R/env.R index 73c6f2ed9..dfdfc875f 100644 --- a/R/env.R +++ b/R/env.R @@ -576,7 +576,7 @@ env_unlock <- function(env) { msg <- c( msg, "i" = sprintf( - "This error is likely caused by an outdated version of pkgload. You are running pkgload %s and you need at least 1.3.5", + "This error is likely caused by an outdated version of pkgload. You are running pkgload %s and you need at least 1.4.0", ver ) )