From 987265d8f01c3fa8e400c4c0261220412efbe102 Mon Sep 17 00:00:00 2001 From: Maximilian Muecke Date: Thu, 29 Aug 2024 14:28:08 +0200 Subject: [PATCH] fix: missing utils namespace prefix --- R/zzz.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/zzz.R b/R/zzz.R index 3d91208..c5f7e40 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -27,12 +27,12 @@ named_union = function(x, y) set_names(union(x, y), union(names(x), names(y))) # metainf must be manually added in the register_mlr3pipelines function # Because the value is substituted, we cannot pass it through this function register_po = function(name, constructor) { - if (hasName(mlr3fda_pipeops, name)) stopf("pipeop %s registered twice", name) + if (utils::hasName(mlr3fda_pipeops, name)) stopf("pipeop %s registered twice", name) mlr3fda_pipeops[[name]] = list(constructor = constructor) } register_task = function(name, constructor) { - if (hasName(mlr3fda_tasks, name)) stopf("task %s registered twice", name) + if (utils::hasName(mlr3fda_tasks, name)) stopf("task %s registered twice", name) mlr3fda_tasks[[name]] = constructor }