Skip to content

Commit

Permalink
styler
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz2101 committed Mar 8, 2024
1 parent 919d2ec commit f08eca3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions R/ard_vif.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ ard_vif <- function(x, ...) {
tryCatch(
varnames <- attr(stats::terms(x), "term.labels"),
error = function(e) {
cli::cli_abort(c(
"There was an error running {.fun car::vif}. See below.",
x = vif[["error"]]
),
call = env_parent(n = 3L))
cli::cli_abort(
c(
"There was an error running {.fun car::vif}. See below.",
x = vif[["error"]]
),
call = env_parent(n = 3L)
)
}
),
VIF = list(NULL),
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-ard_vif.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ test_that("ard_vif() issues friendly messaging for incorrect object passed in/ca
cards::ADSL |> ard_vif()
)
})

0 comments on commit f08eca3

Please sign in to comment.