Skip to content

Commit 1183f15

Browse files
Adds Sys.unsetenv() to default_undesirable_functions (#2192)
* Adds `Sys.unsetenv()` to `default_undesirable_functions` closes #1762 * Update NEWS.md
1 parent 8fe5e0f commit 1183f15

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
* `unused_import_linter()` gains an argument `interpret_glue` (default `TRUE`) paralleling that in `object_usage_linter()` to toggle whether `glue::glue()` expressions should be inspected for exported object usage (#2042, @MichaelChirico).
5858
* `sort_linter()` only lints on `order()` of a single vector, excluding e.g. `x[order(x, y)]` and `x[order(y, x)]` (#2156, @MichaelChirico).
5959
* `redundant_ifelse_linter()` is aware of `dplyr::if_else()`'s `missing=` argument, so that `if_else(A, TRUE, FALSE, missing = FALSE)` doesn't lint, but `if_else(A, TRUE, FALSE, NA)` does (#1941, @MichaelChirico). Note that `dplyr::coalesce()` or `tidyr::replace_na()` may still be preferable.
60+
* `default_undesirable_functions` is updated to also include `Sys.unsetenv()` (#2192, @IndrajeetPatil).
6061

6162
### New linters
6263

R/zzz.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ default_undesirable_functions <- all_undesirable_functions[names(all_undesirable
196196
"source",
197197
"Sys.setenv",
198198
"Sys.setlocale",
199+
"Sys.unsetenv",
199200
"trace",
200201
"undebug",
201202
"untrace"

0 commit comments

Comments
 (0)