Skip to content

Commit

Permalink
various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 committed Apr 22, 2024
1 parent 23b89ae commit 60f1b21
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# mlr3pipelines 0.5.2

* Added new `ppl("convert_types")`
* Added new `ppl("convert_types")`.
* Minor documentation fixes.
* Test helpers are now available in `inst/`. These are considered experimental and unstable.

# mlr3pipelines 0.5.1

Expand Down
1 change: 1 addition & 0 deletions R/pipeline_convert_types.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#' @return [`Graph`]
#' @export
#' @examples
#' library("mlr3")
#'
#' data_chr = data.table::data.table(
#' x = factor(letters[1:3]),
Expand Down
2 changes: 1 addition & 1 deletion inst/testthat/helper_test_pipeops.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ VarargPipeop = R6Class("VarargPipeop",
public = list(
initialize = function(id = "vararg", innum = 0, param_vals = list()) {
super$initialize(id, param_vals = param_vals,
input = data.table(name = c("...", rep_suffix("input", innum)), train = "*", predict = "*"),
input = data.table(name = c("...", mlr3pipelines:::rep_suffix("input", innum)), train = "*", predict = "*"),
output = data.table(name = "output", train = "*", predict = "*")
)
}),
Expand Down
1 change: 1 addition & 0 deletions man/mlr_graphs_convert_types.Rd

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

9 changes: 6 additions & 3 deletions tests/testthat/helper_mlr3pipelines.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
library(mlr3)
library(checkmate)
library(testthat)
library("mlr3pipelines")
library("checkmate")
library("testthat")
library("R6")
library("mlr3misc")
library("paradox")

lapply(list.files(system.file("testthat", package = "mlr3pipelines"), pattern = "^helper.*\\.[rR]", full.names = TRUE), source)

0 comments on commit 60f1b21

Please sign in to comment.