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.21.0

License

LGPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Marc Becker

Last Published

February 26th, 2026

Functions in mlr3misc (0.21.0)

check_packages_installed

Check that packages are installed, without loading them
clbk

Syntactic Sugar for Callback Construction
capitalize

Capitalize the First Letter of Strings
compose

Composition of Functions
check_operators

Logical Check Operators
cat_cli

Function to transform message to output
catn

Function for Formatted Output
compat-map

Apply Functions in the spirit of 'purrr'
encapsulate

Encapsulate Function Calls
enframe

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

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

Check if an Object is Element of a List
hash_input

Hash Input
crate

Isolate a Function from its Environment
count_missing

Count Missing Values in a Vector
dictionary_sugar_get

A Quick Way to Initialize Objects from Dictionaries
get_private<-

Assign Value to Private Field
formulate

Create Formulas
insert_named

Insert or Remove Named Elements
ids

Extract ids from a List of Objects
cross_join

Cross-Join for data.table
get_private

Extract Private Fields of R6 Objects
get_seed

Get the Random Seed
mlr_conditions

Error Classes
keep_in_bounds

Remove All Elements Out Of Bounds
is_scalar_na

Check for a Single Scalar Value
format_bib

Format Bibentries in Roxygen
leanify_r6

Move all methods of an R6 Class to an environment
invoke

Invoke a Function Call
deprecated_binding

Create an Active Binding that Generates a Deprecation Warning
distinct_values

Get Distinct Values
did_you_mean

Suggest Alternatives
chunk_vector

Chunk Vectors
extract_vars

Extract Variables from a Formula
register_namespace_callback

Registers a Callback on Namespace load/unLoad Events
set_class

Set the Class
modify_if

Selectively Modify Elements of a Vector
recycle_vectors

Recycle List of Vectors to Common Length
load_dataset

Retrieve a Single Data Set
mlr3misc-package

mlr3misc: Helper Functions for 'mlr3'
set_names

Set Names
mlr_callbacks

Dictionary of Callbacks
map_values

Replace Elements of Vectors with New Values
named_list

Create a Named List
rcbind

Bind Columns by Reference
open_help

Opens a Manual Page
str_collapse

Collapse Strings
printf

Functions for Formatted Output and Conditions
rd_info

Helpers to Create Manual Pages
rowwise_table

Row-Wise Constructor for 'data.table'
sequence_helpers

Sequence Construction Helpers
require_namespaces

Require Multiple Namespaces
named_vector

Create a Named Vector
reorder_vector

Reorder Vector According to Second Vector
with_package

Execute code with a modified search path
to_decimal

Convert a Vector of Bits to a Decimal Number
str_indent

Indent Strings
transpose_list

Transpose lists of lists
unnest

Unnest List Columns
topo_sort

Topological Sorting of Dependency Graphs
set_params

Modify Values of a Parameter Set
shuffle

Safe Version of Sample
warn_deprecated

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

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

Negated in-operator
names2

A Type-Stable names() Replacement
str_trunc

Truncate Strings
strip_srcrefs

Strip source references from objects
Context

Context
as_short_string

Convert R Object to a Descriptive String
assert_callback

Assertions for Callbacks
Callback

Callback
call_back

Call Callbacks
assert_ro_binding

Assertion for Active Bindings in R6 Classes
as_callback

Convert to a Callback
as_factor

Convert to Factor
calculate_hash

Calculate a Hash for Multiple Objects
Dictionary

Key-Value Storage
compute_mode

Compute The Mode