From 68ee00c511d17f305439bf90ad30552ca993deea Mon Sep 17 00:00:00 2001 From: be-marc Date: Thu, 29 Feb 2024 11:53:25 +0100 Subject: [PATCH] fix: data.table --- DESCRIPTION | 2 +- R/OptimizerIrace.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7258a4ac..a479c832 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -44,7 +44,7 @@ Depends: R (>= 3.1.0) Imports: checkmate (>= 2.0.0), - data.table (>= 1.15.2), + data.table, lgr, methods, mlr3misc (>= 0.11.0), diff --git a/R/OptimizerIrace.R b/R/OptimizerIrace.R index 615fea50..3ed3783f 100644 --- a/R/OptimizerIrace.R +++ b/R/OptimizerIrace.R @@ -229,7 +229,7 @@ target_runner_default = function(experiment, exec.target.runner, scenario, targe configuration }) # fix logicals - lgl_params = as.data.table(optim_instance$search_space)[class == "ParamLgl", id, env = list(id = "id")] + lgl_params = as.data.table(optim_instance$search_space)[class == "ParamLgl", "id"][[1]] if (length(lgl_params)) xdt[, (lgl_params) := lapply(.SD, as.logical), .SDcols = lgl_params] # provide experiment instances to objective