Skip to content

Commit bd94245

Browse files
committed
react to another renamecol problem
1 parent 4d5695f commit bd94245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/testthat/test_pipeop_renamecolumns.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ test_that("basic properties", {
1313

1414
test_that("renaming works", {
1515
task = mlr_tasks$get("iris")
16+
task$cbind(data.table(Petal.Width = as.character(1:150))) # need a char column that we can turn into the 'name'-col
1617
op = PipeOpRenameColumns$new(param_vals = list(renaming = c("Petal.Length" = "PL")))
1718
train_out1 = op$train(list(task))[[1L]]
1819
predict_out1 = op$predict(list(task))[[1L]]

0 commit comments

Comments
 (0)