Skip to content

Commit

Permalink
Merge pull request #118 from tidymodels/update-tidyr_new_interface
Browse files Browse the repository at this point in the history
avoid problem if tidyr package isn't installed
  • Loading branch information
EmilHvitfeldt authored Feb 20, 2023
2 parents bcefaf9 + 7999f40 commit f93cb22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/tune_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ generate_seeds <- function(rng, n) {
}

tidyr_new_interface <- function() {
utils::packageVersion("tidyr") > "0.8.99"
nzchar(system.file(package = "tidyr")) &&
utils::packageVersion("tidyr") > "0.8.99"
}

#' Determine the minimum set of model fits
Expand Down

0 comments on commit f93cb22

Please sign in to comment.