From ffbefa42128ce4a7f129b1acedddc862e9df53e0 Mon Sep 17 00:00:00 2001 From: be-marc Date: Thu, 21 Dec 2023 14:41:56 +0100 Subject: [PATCH] chore: silence CRAN checks --- .Rbuildignore | 1 + R/ResultData.R | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index 9c5bd3a56..e978731f6 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -22,3 +22,4 @@ ^CONTRIBUTING.md ^cran-comments\.md$ ^CRAN-SUBMISSION$ +^benchmark$ diff --git a/R/ResultData.R b/R/ResultData.R index c88e75271..6550f0bfd 100644 --- a/R/ResultData.R +++ b/R/ResultData.R @@ -49,9 +49,10 @@ ResultData = R6Class("ResultData", uhashes = data.table(uhash = unique(data$uhash)) setkeyv(data, c("uhash", "iteration")) - data[, task_hash := task[[1]]$hash, by = "uhash"] - data[, learner_phash := learner[[1]]$phash, by = "uhash"] - data[, resampling_hash := resampling[[1]]$hash, by = "uhash"] + task = learner = resampling = NULL + data[, "task_hash" := task[[1]]$hash, by = "uhash"] + data[, "learner_phash" := learner[[1]]$phash, by = "uhash"] + data[, "resampling_hash" := resampling[[1]]$hash, by = "uhash"] tasks = data[, list(task = .SD$task[1L]), keyby = "task_hash"]