From 48f1634105401a6c027fc22bd5954e2b9bc2494f Mon Sep 17 00:00:00 2001 From: mllg Date: Fri, 12 May 2023 09:14:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mlr-org/?= =?UTF-8?q?mlr3misc@f20c5b5548b606f2b7ecb2412f2c71571536b2f3=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 14 +- LICENSE-text.html | 6 +- LICENSE.html | 10 +- authors.html | 10 +- deps/JetBrains_Mono-0.4.6/font.css | 7 + ...EEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPg.woff | Bin 0 -> 50096 bytes deps/Roboto-0.4.6/KFOmCnqEu92Fr1Me5g.woff | Bin 0 -> 65456 bytes deps/Roboto-0.4.6/font.css | 7 + ...XZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaw.woff | Bin 0 -> 52952 bytes deps/Roboto_Slab-0.4.6/font.css | 7 + deps/bootstrap-5.2.2/bootstrap.bundle.min.js | 7 + .../bootstrap.bundle.min.js.map | 1 + deps/bootstrap-5.2.2/bootstrap.min.css | 6 + deps/data-deps.txt | 10 +- index.html | 15 +- news/index.html | 32 +++- pkgdown.yml | 6 +- reference/Callback.html | 22 ++- reference/Context.html | 20 +- reference/Dictionary.html | 32 ++-- reference/as_callback.html | 6 +- reference/as_factor.html | 6 +- reference/as_short_string.html | 6 +- reference/assert_callback.html | 6 +- reference/assert_ro_binding.html | 6 +- reference/calculate_hash.html | 6 +- reference/call_back.html | 6 +- reference/capitalize.html | 6 +- reference/catn.html | 6 +- reference/check_packages_installed.html | 6 +- reference/chunk_vector.html | 20 +- reference/clbk.html | 6 +- reference/compat-map.html | 6 +- reference/compose.html | 6 +- reference/compute_mode.html | 10 +- reference/count_missing.html | 6 +- reference/crate.html | 6 +- reference/cross_join.html | 6 +- reference/dictionary_sugar_get.html | 6 +- reference/dictionary_sugar_inc_get.html | 172 ++++++++++++++++++ reference/did_you_mean.html | 6 +- reference/distinct_values.html | 8 +- reference/encapsulate.html | 18 +- reference/enframe.html | 6 +- reference/extract_vars.html | 6 +- reference/format_bib.html | 10 +- reference/formulate.html | 6 +- reference/get_private-set.html | 6 +- reference/get_private.html | 6 +- reference/get_seed.html | 8 +- reference/has_element.html | 6 +- reference/ids.html | 6 +- reference/index.html | 11 +- reference/insert_named.html | 6 +- reference/invoke.html | 6 +- reference/is_scalar_na.html | 6 +- reference/keep_in_bounds.html | 8 +- reference/leanify_r6.html | 6 +- reference/load_dataset.html | 6 +- reference/map_values.html | 6 +- reference/mlr3misc-package.html | 6 +- reference/mlr_callbacks.html | 6 +- reference/modify_if.html | 6 +- reference/named_list.html | 6 +- reference/named_vector.html | 6 +- reference/names2.html | 6 +- reference/nin.html | 6 +- reference/open_help.html | 6 +- reference/printf.html | 6 +- reference/rcbind.html | 12 +- reference/rd_info.html | 6 +- reference/recycle_vectors.html | 6 +- reference/register_namespace_callback.html | 6 +- reference/reorder_vector.html | 6 +- reference/require_namespaces.html | 6 +- reference/rowwise_table.html | 6 +- reference/sequence_helpers.html | 6 +- reference/set_class.html | 6 +- reference/set_names.html | 6 +- reference/set_params.html | 6 +- reference/shuffle.html | 8 +- reference/str_collapse.html | 6 +- reference/str_indent.html | 6 +- reference/str_trunc.html | 6 +- reference/to_decimal.html | 6 +- reference/topo_sort.html | 6 +- reference/transpose_list.html | 6 +- reference/unnest.html | 6 +- reference/which_min.html | 6 +- reference/with_package.html | 6 +- search.json | 2 +- sitemap.xml | 3 + 92 files changed, 558 insertions(+), 298 deletions(-) create mode 100644 deps/JetBrains_Mono-0.4.6/font.css create mode 100644 deps/JetBrains_Mono-0.4.6/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxjPg.woff create mode 100644 deps/Roboto-0.4.6/KFOmCnqEu92Fr1Me5g.woff create mode 100644 deps/Roboto-0.4.6/font.css create mode 100644 deps/Roboto_Slab-0.4.6/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISWaw.woff create mode 100644 deps/Roboto_Slab-0.4.6/font.css create mode 100644 deps/bootstrap-5.2.2/bootstrap.bundle.min.js create mode 100644 deps/bootstrap-5.2.2/bootstrap.bundle.min.js.map create mode 100644 deps/bootstrap-5.2.2/bootstrap.min.css create mode 100644 reference/dictionary_sugar_inc_get.html diff --git a/404.html b/404.html index f9793ee8..8cee9aa4 100644 --- a/404.html +++ b/404.html @@ -13,13 +13,13 @@ - - - - + + + + - + License • mlr3miscLicense • mlr3misc @@ -10,7 +10,7 @@ mlr3misc - 0.11.0 + 0.12.0 + + + + + +
+
+
+ +
+

Covenience wrapper around dictionary_sugar_get and dictionary_sugar_mget to allow easier avoidance of of ID +clashes which is useful when the same object is used multiple times and the ids have to be unique. +Let <key> be the key of the object to retrieve. When passing the <key>_<n> to this +function, where <n> is any natural numer, the object with key <key> is retrieved and the +suffix _<n> is appended to the id after the object is constructed.

+
+ +
+

Usage

+
dictionary_sugar_inc_get(dict, .key, ...)
+
+dictionary_sugar_inc_mget(dict, .keys, ...)
+
+ +
+

Arguments

+
dict
+

(Dictionary)
+Dictionary from which to retrieve an element.

+ + +
.key
+

(character(1))
+Key of the object to construct - possibly with a suffix of the form _<n> which will be appended to the id.

+ + +
...
+

(any)
+See description of dictionary_sugar.

+ + +
.keys
+

(character())
+Keys of the objects to construct - possibly with suffixes of the form _<n> which will be appended to the ids.

+ +
+
+

Value

+ + +

An element from the dictionary.

+
+ +
+

Examples

+
d = Dictionary$new()
+d$add("a", R6::R6Class("A", public = list(id = "a")))
+d$add("b", R6::R6Class("B", public = list(id = "c")))
+obj1 = dictionary_sugar_inc_get(d, "a_1")
+obj1$id
+#> [1] "a_1"
+
+obj2 = dictionary_sugar_inc_get(d, "b_1")
+obj2$id
+#> [1] "c_1"
+
+objs = dictionary_sugar_inc_mget(d, c("a_10", "b_2"))
+map(objs, "id")
+#> $a_10
+#> [1] "a_10"
+#> 
+#> $c_2
+#> [1] "c_2"
+#> 
+
+
+
+
+ + +
+ + + +
+ + + + + + + diff --git a/reference/did_you_mean.html b/reference/did_you_mean.html index 6bc18b47..8583cae2 100644 --- a/reference/did_you_mean.html +++ b/reference/did_you_mean.html @@ -1,5 +1,5 @@ -Suggest Alternatives — did_you_mean • mlr3miscSuggest Alternatives — did_you_mean • mlr3misc @@ -10,7 +10,7 @@ mlr3misc - 0.11.0 + 0.12.0