-
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathzzz.R
25 lines (20 loc) · 918 Bytes
/
zzz.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#' @import data.table
#' @import mlr3
#' @importFrom utils head hsearch_db
NULL
db = new.env()
db$index = c("base", "utils", "datasets", "data.table", "stats", "batchtools")
db$hosted = c("paradox", "mlr3misc", "mlr3", "mlr3data", "mlr3db", "mlr3proba", "mlr3pipelines", "mlr3learners", "mlr3filters", "bbotk", "mlr3tuning", "mlr3viz", "mlr3fselect", "mlr3cluster", "mlr3spatiotempcv", "mlr3spatial", "mlr3extralearners", "mlr3tuningspaces", "mlr3hyperband", "mlr3mbo", "mlr3verse", "mlr3benchmark", "mlr3oml", "mlr3batchmark", "mlr3fairness", "mlr3inferr")
lgr = NULL
.onLoad = function(libname, pkgname) {
db$base = NULL
db$aliases = NULL
lgr <<- lgr::get_logger("mlr3book")
# root = rprojroot::find_package_root_file()
# logfile = file.path(root, "mlr3book.log")
# lgr$set_appenders(lgr::AppenderFile$new(logfile))
}
update_db()
for (pkg in db$hosted) {
assign(pkg, mlr_pkg(pkg, index = TRUE))
}