Skip to content

Commit

Permalink
Mention removal of env_unlock() in NEWS
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Jun 27, 2024
1 parent 29b7b8c commit 7ead94d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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()`
Expand Down
2 changes: 1 addition & 1 deletion R/env.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)

Check warning on line 582 in R/env.R

View check run for this annotation

Codecov / codecov/patch

R/env.R#L574-L582

Added lines #L574 - L582 were not covered by tests
Expand Down

0 comments on commit 7ead94d

Please sign in to comment.