Skip to content

Commit

Permalink
fix: missing utils namespace prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Aug 29, 2024
1 parent 3ad2f2f commit 987265d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 987265d

Please sign in to comment.