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,381

Version

0.22.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Becker

Last Published

June 10th, 2026

Functions in mlr3misc (0.22.0)

distinct_values

Get Distinct Values
enframe

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

Encapsulate Function Calls
deprecated_binding

Create an Active Binding that Generates a Deprecation Warning
cross_join

Cross-Join for data.table
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
dictionary_sugar_inc_get

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

Extract ids from a List of Objects
get_private

Extract Private Fields of R6 Objects
insert_named

Insert or Remove Named Elements
get_private<-

Assign Value to Private Field
formulate

Create Formulas
is_scalar_na

Check for a Single Scalar Value
invoke

Invoke a Function Call
hash_input

Hash Input
keep_in_bounds

Remove All Elements Out Of Bounds
leanify_r6

Move all methods of an R6 Class to an environment
has_element

Check if an Object is Element of a List
map_values

Replace Elements of Vectors with New Values
modify_if

Selectively Modify Elements of a Vector
load_dataset

Retrieve a Single Data Set
format_bib

Format Bibentries in Roxygen
extract_vars

Extract Variables from a Formula
mlr_conditions

Error Classes
mlr_callbacks

Dictionary of Callbacks
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
get_seed

Get the Random Seed
names2

A Type-Stable names() Replacement
rcbind

Bind Columns by Reference
recycle_vectors

Recycle List of Vectors to Common Length
printf

Functions for Formatted Output and Conditions
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
open_help

Opens a Manual Page
named_list

Create a Named List
named_vector

Create a Named Vector
rd_info

Helpers to Create Manual Pages
%nin%

Negated in-operator
reorder_vector

Reorder Vector According to Second Vector
shuffle

Safe Version of Sample
str_indent

Indent Strings
rowwise_table

Row-Wise Constructor for 'data.table'
set_class

Set the Class
set_names

Set Names
str_collapse

Collapse Strings
require_namespaces

Require Multiple Namespaces
set_params

Modify Values of a Parameter Set
unnest

Unnest List Columns
sequence_helpers

Sequence Construction Helpers
transpose_list

Transpose lists of lists
str_trunc

Truncate Strings
with_package

Execute code with a modified search path
strip_srcrefs

Strip source references from objects
topo_sort

Topological Sorting of Dependency Graphs
to_decimal

Convert a Vector of Bits to a Decimal Number
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
Callback

Callback
Dictionary

Key-Value Storage
as_callback

Convert to a Callback
calculate_hash

Calculate a Hash for Multiple Objects
as_factor

Convert to Factor
assert_callback

Assertions for Callbacks
as_short_string

Convert R Object to a Descriptive String
call_back

Call Callbacks
capitalize

Capitalize the First Letter of Strings
catn

Function for Formatted Output
clbk

Syntactic Sugar for Callback Construction
Context

Context
compose

Composition of Functions
check_packages_installed

Check that packages are installed, without loading them
assert_ro_binding

Assertion for Active Bindings in R6 Classes
compat-map

Apply Functions in the spirit of 'purrr'
chunk_vector

Chunk Vectors
compute_mode

Compute The Mode
cat_cli

Function to transform message to output
crate

Isolate a Function from its Environment
count_missing

Count Missing Values in a Vector
did_you_mean

Suggest Alternatives
check_operators

Logical Check Operators