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

25,663

Version

0.23.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Becker

Last Published

August 21st, 2026

Functions in mlr3misc (0.23.0)

dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
extract_vars

Extract Variables from a Formula
get_private<-

Assign Value to Private Field
insert_named

Insert or Remove Named Elements
ids

Extract ids from a List of Objects
formulate

Create Formulas
get_private

Extract Private Fields of R6 Objects
keep_in_bounds

Remove All Elements Out Of Bounds
has_element

Check if an Object is Element of a List
get_seed

Get the Random Seed
mlr_callbacks

Dictionary of Callbacks
modify_if

Selectively Modify Elements of a Vector
mlr_conditions

Error Classes
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
printf

Functions for Formatted Output and Conditions
open_help

Opens a Manual Page
hash_input

Hash Input
named_list

Create a Named List
named_vector

Create a Named Vector
load_dataset

Retrieve a Single Data Set
is_scalar_na

Check for a Single Scalar Value
leanify_r6

Move all methods of an R6 Class to an environment
map_values

Replace Elements of Vectors with New Values
rcbind

Bind Columns by Reference
rd_info

Helpers to Create Manual Pages
invoke

Invoke a Function Call
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
recycle_vectors

Recycle List of Vectors to Common Length
shuffle

Safe Version of Sample
set_params

Modify Values of a Parameter Set
require_namespaces

Require Multiple Namespaces
reorder_vector

Reorder Vector According to Second Vector
sequence_helpers

Sequence Construction Helpers
names2

A Type-Stable names() Replacement
rowwise_table

Row-Wise Constructor for 'data.table'
%nin%

Negated in-operator
str_collapse

Collapse Strings
str_indent

Indent Strings
str_trunc

Truncate Strings
set_class

Set the Class
transpose_list

Transpose lists of lists
unnest

Unnest List Columns
set_names

Set Names
which_min

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

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

Convert a Vector of Bits to a Decimal Number
topo_sort

Topological Sorting of Dependency Graphs
strip_srcrefs

Strip source references from objects
with_package

Execute code with a modified search path
Callback

Callback
call_back

Call Callbacks
calculate_hash

Calculate a Hash for Multiple Objects
assert_ro_binding

Assertion for Active Bindings in R6 Classes
as_factor

Convert to Factor
Dictionary

Key-Value Storage
as_callback

Convert to a Callback
as_short_string

Convert R Object to a Descriptive String
Context

Context
assert_callback

Assertions for Callbacks
check_packages_installed

Check that packages are installed, without loading them
check_operators

Logical Check Operators
chunk_vector

Chunk Vectors
catn

Function for Formatted Output
compose

Composition of Functions
compat-map

Apply Functions in the spirit of 'purrr'
clbk

Syntactic Sugar for Callback Construction
compute_mode

Compute The Mode
cat_cli

Function to transform message to output
capitalize

Capitalize the First Letter of Strings
count_missing

Count Missing Values in a Vector
encapsulate

Encapsulate Function Calls
distinct_values

Get Distinct Values
did_you_mean

Suggest Alternatives
dictionary_sugar_inc_get

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

Isolate a Function from its Environment
enframe

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

Cross-Join for data.table
deprecated_binding

Create an Active Binding that Generates a Deprecation Warning
format_bib

Format Bibentries in Roxygen