Showing 2 of 140 files from the diff.
Other files ignored by Codecov
NAMESPACE has changed.
docs/sitemap.xml has changed.
docs/pkgdown.css has changed.
docs/pkgdown.yml has changed.
man/db_read.Rd has changed.
docs/authors.html has changed.
docs/index.html has changed.
docs/pkgdown.js has changed.
docs/CNAME is new.
DESCRIPTION has changed.

@@ -31,8 +31,6 @@
Loading
31 31
#'  \code{tidy} method, a tibble with columns \code{terms} (the
32 32
#'  selectors or variables selected).
33 33
#' @keywords datagen
34 -
#' @concept preprocessing dummy_variables model_specification
35 -
#'  dummy_variables variable_encodings
36 34
#' @export
37 35
#' @details \code{step_dummy_hcai} will create a set of binary dummy
38 36
#'  variables from a factor variable. For example, if an unordered

@@ -278,8 +278,9 @@
Loading
278 278
279 279
  # Reorder factor levels if classification model and if outcomes exists
280 280
  if (!is.regression_list(object) && !is.null(outcomes)) {
281 -
    newdata[[mi$target]] <-
282 -
      forcats::fct_relevel(newdata[[mi$target]], mi$positive_class)
281 +
    levs <- c(mi$positive_class,
282 +
              levels(newdata[[mi$target]])[levels(newdata[[mi$target]]) != mi$positive_class])
283 +
    newdata[[mi$target]] <- factor(newdata[[mi$target]], levels = levs)
283 284
  }
284 285
285 286
  # Add groups if desired
Files Coverage
R 95.5%
Project Totals (41 files) 95.5%