Skip to content

Commit

Permalink
Import pillar methods
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 25, 2021
1 parent 9806094 commit 8d464c0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 32 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1.9000
RoxygenNote: 7.1.2
6 changes: 4 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Generated by roxygen2: do not edit by hand

S3method(obj_sum,tune_race)
S3method(print,control_race)
S3method(print,control_sim_anneal)
S3method(size_sum,tune_race)
S3method(tune_race_anova,default)
S3method(tune_race_anova,formula)
S3method(tune_race_anova,model_spec)
Expand All @@ -19,9 +21,7 @@ S3method(tune_sim_anneal,recipe)
S3method(tune_sim_anneal,workflow)
export(control_race)
export(control_sim_anneal)
export(obj_sum.tune_race)
export(plot_race)
export(size_sum.tune_race)
export(tune_race_anova)
export(tune_race_win_loss)
export(tune_sim_anneal)
Expand All @@ -38,5 +38,7 @@ importFrom(stats,reorder)
importFrom(stats,rnorm)
importFrom(stats,runif)
importFrom(stats,setNames)
importFrom(tibble,obj_sum)
importFrom(tibble,size_sum)
importFrom(tibble,tibble)
importFrom(utils,globalVariables)
7 changes: 0 additions & 7 deletions R/pillar.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

#' @export
#' @keywords internal
#' @rdname pillar-helpers
obj_sum.tune_race <- function(x) {
null_metrics <- purrr::map_lgl(x$.metrics, is.null)
if (!all(null_metrics)) {
Expand All @@ -12,12 +10,7 @@ obj_sum.tune_race <- function(x) {
res
}

#' Helpers for pillar formatting
#' @param x an object
#' @return A character string.
#' @export
#' @keywords internal
#' @rdname pillar-helpers
size_sum.tune_race <- function(x) {
""
}
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' @importFrom stats qt runif coef confint lm reorder rnorm setNames dist
#' @importFrom utils globalVariables
#' @importFrom rlang syms
#' @importFrom tibble tibble
#' @importFrom tibble tibble obj_sum size_sum
#' @importFrom dplyr %>% distinct
#' @importFrom utils globalVariables
#' @import tune
Expand Down
21 changes: 0 additions & 21 deletions man/pillar-helpers.Rd

This file was deleted.

0 comments on commit 8d464c0

Please sign in to comment.