extract_pkgs() extracts required package from various objects, including
TaskGenerator, Learner, Measure and objects from
extension packages such as mlr3pipelines or mlr3filters.
If applied on a list, the function is called recursively on all elements.
extract_pkgs() internally and proceeds with the
installation of extracted packages.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
If a package contains a forward slash ('/'), it is assumed to be a package hosted
on GitHub in
"<user>/<repo>" format, and the string will be passed to
Otherwise, the package name will be passed to
extract_pkgs() returns a
character() of package strings,
install_pkgs() returns the names of extracted packages invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.