unit testing R4.3

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2023-05-26 20:37:00 +02:00
1 parent 766db4e21f
commit e1966503ee
10 files changed
+20 -17

No files matched your search

+1 -1
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]