Closed mb706 closed 3 years ago
UI something like
register_mlr3 = function() { ... } register_mlr3pipelines = function() { ... } .onLoad = function(libname, pkgname) { mlr3misc::react_to_namespace("mlr3", register_mlr3) mlr3misc::react_to_namespace("mlr3pipelines", register_mlr3pipelines) }
should look something like
react_to_namespace = function(namespace, callback) { if (already_loaded(namespace)) callback() setHook(packageEvent(namespace, "onLoad"), .......) setHook(packageEvent(namespace_name_of(parent.frame()), "onUnload"), function(...) { < do the onUnload stuff > }) }
UI something like
should look something like