Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 21, 2024
1 parent 9cd46e7 commit 2eeaa7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/find_formula.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#' - `"index"`: Check if formula contains indexed data frames as response
#' variable (e.g., `df[, 5] ~ x`).
#' - `"name"`: Check if invalid syntactically variables names were used and
#' enquoted in backticks.
#' quoted in backticks.
#' - `"all"`: Checks all of the above mentioned options.
#'
#' @param ... Currently not used.
Expand Down Expand Up @@ -1995,7 +1995,7 @@ find_formula.model_fit <- function(x, verbose = TRUE, ...) {
if (verbose) {
bad_name <- gsub("(.*)`(.*)`(.*)", "\\2", resp)
format_warning(paste0(
"Looks like you are using invalid syntactically variables names, enquoted in backticks: `",
"Looks like you are using invalid syntactically variables names, quoted in backticks: `",
bad_name,
"`. This may result in unexpected behaviour. Please rename your variables (e.g., `",
make.names(bad_name),
Expand Down
2 changes: 1 addition & 1 deletion man/find_formula.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/testthat/test-backticks.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ withr::with_environment(
)
)
expect_identical(
find_predictors(m),
find_predictors(m, verbose = FALSE),
list(conditional = c("Petal.Length", "a m", "Sepal.Length"))
)
expect_identical(
Expand Down

0 comments on commit 2eeaa7e

Please sign in to comment.