Learn R Programming

mlr3misc

Package website: release | dev

Miscellaneous helper functions for mlr3.

Installation

Install the last release from CRAN:

install.packages("mlr3misc")

Install the development version from GitHub:

pak::pak("mlr-org/mlr3misc")

Copy Link

Version

Install

install.packages('mlr3misc')

Monthly Downloads

23,602

Version

0.20.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Becker

Last Published

February 20th, 2026

Functions in mlr3misc (0.20.0)

compose

Composition of Functions
catn

Function for Formatted Output
clbk

Syntactic Sugar for Callback Construction
encapsulate

Encapsulate Function Calls for Logging
cross_join

Cross-Join for data.table
deprecated_binding

Create an Active Binding that Generates a Deprecation Warning
did_you_mean

Suggest Alternatives
distinct_values

Get Distinct Values
get_private

Extract Private Fields of R6 Objects
enframe

Convert a Named Vector into a data.table and Vice Versa
has_element

Check if an Object is Element of a List
hash_input

Hash Input
get_seed

Get the Random Seed
insert_named

Insert or Remove Named Elements
ids

Extract ids from a List of Objects
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
get_private<-

Assign Value to Private Field
compat-map

Apply Functions in the spirit of 'purrr'
dictionary_sugar_inc_get

A Quick Way to Initialize Objects from Dictionaries with Incremented ID
formulate

Create Formulas
extract_vars

Extract Variables from a Formula
format_bib

Format Bibentries in Roxygen
crate

Isolate a Function from its Environment
count_missing

Count Missing Values in a Vector
invoke

Invoke a Function Call
keep_in_bounds

Remove All Elements Out Of Bounds
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
is_scalar_na

Check for a Single Scalar Value
mlr_callbacks

Dictionary of Callbacks
open_help

Opens a Manual Page
names2

A Type-Stable names() Replacement
%nin%

Negated in-operator
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
recycle_vectors

Recycle List of Vectors to Common Length
set_params

Modify Values of a Parameter Set
load_dataset

Retrieve a Single Data Set
reorder_vector

Reorder Vector According to Second Vector
rcbind

Bind Columns by Reference
rd_info

Helpers to Create Manual Pages
leanify_r6

Move all methods of an R6 Class to an environment
named_vector

Create a Named Vector
named_list

Create a Named List
map_values

Replace Elements of Vectors with New Values
rowwise_table

Row-Wise Constructor for 'data.table'
modify_if

Selectively Modify Elements of a Vector
sequence_helpers

Sequence Construction Helpers
mlr_conditions

Error Classes
require_namespaces

Require Multiple Namespaces
topo_sort

Topological Sorting of Dependency Graphs
to_decimal

Convert a Vector of Bits to a Decimal Number
shuffle

Safe Version of Sample
unnest

Unnest List Columns
transpose_list

Transpose lists of lists
set_names

Set Names
set_class

Set the Class
str_collapse

Collapse Strings
str_indent

Indent Strings
warn_deprecated

Give a Warning about a Deprecated Function, Argument, or Active Binding
with_package

Execute code with a modified search path
printf

Functions for Formatted Output and Conditions
which_min

Index of the Minimum/Maximum Value, with Correction for Ties
strip_srcrefs

Strip source references from objects
str_trunc

Truncate Strings
assert_callback

Assertions for Callbacks
as_short_string

Convert R Object to a Descriptive String
Context

Context
assert_ro_binding

Assertion for Active Bindings in R6 Classes
Callback

Callback
call_back

Call Callbacks
calculate_hash

Calculate a Hash for Multiple Objects
as_factor

Convert to Factor
as_callback

Convert to a Callback
Dictionary

Key-Value Storage
chunk_vector

Chunk Vectors
check_packages_installed

Check that packages are installed, without loading them
compute_mode

Compute The Mode
check_operators

Logical Check Operators
capitalize

Capitalize the First Letter of Strings
cat_cli

Function to transform message to output