Skip to content

Commit 61a6a1e

Browse files
Apply suggestions from code review
Co-authored-by: Emil Hvitfeldt <[email protected]>
1 parent d26a108 commit 61a6a1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/misc.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@ is_cran_check <- function() {
581581
#'
582582
#' [.get_prediction_column_names()] returns a list that has the names of the
583583
#' columns for the primary prediction types for a model.
584-
#' @param x A fitted model (class `"model_fit"`) or a fitted workflow.
585-
#' @param syms Should the column names be converted to symbols?
584+
#' @param x A fitted parsnip model (class `"model_fit"`) or a fitted workflow.
585+
#' @param syms Should the column names be converted to symbols? Defaults to `FALSE`.
586586
#' @return A list with elements `"estimate"` and `"probabilities"`.
587587
#' @examplesIf !parsnip:::is_cran_check()
588588
#' library(dplyr)
@@ -638,6 +638,7 @@ is_cran_check <- function() {
638638
res$probabilities <- ".pred"
639639
}
640640
} else {
641+
# Should be unreachable
641642
cli::cli_abort("Unsupported model mode {model_mode}.")
642643
}
643644

0 commit comments

Comments
 (0)