1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 07:31:54 +02:00

unit testing R4.3

This commit is contained in:
2023-05-26 20:37:00 +02:00
parent 766db4e21f
commit e1966503ee
10 changed files with 20 additions and 17 deletions

View File

@ -1009,7 +1009,7 @@ get_current_column <- function() {
# cur_column() doesn't always work (only allowed for certain conditions set by dplyr), but it's probably still possible:
frms <- lapply(sys.frames(), function(env) {
if (!is.null(env$i)) {
if (tryCatch(!is.null(env$i), error = function(e) FALSE)) {
if (!is.null(env$tibble_vars)) {
# for mutate_if()
env$tibble_vars[env$i]