rst_list

0th

Percentile

Restarts utilities.

Restarts are named jumping points established by with_restarts(). rst_list() returns the names of all restarts currently established. rst_exists() checks if a given restart is established. rst_jump() stops execution of the current function and jumps to a restart point. If the restart does not exist, an error is thrown. rst_maybe_jump() first checks that a restart exists before jumping.

Usage
rst_list()
rst_exists(.restart)
rst_jump(.restart, ..., .args = list())
rst_maybe_jump(.restart, ..., .args = list())
Arguments
.restart
The name of a restart.
..., .args
Arguments passed on to the restart function.
See Also

with_restarts(), rst_muffle().

Aliases
  • rst_list
  • rst_exists
  • rst_jump
  • rst_maybe_jump
Documentation reproduced from package rlang, version 0.0.0.9000, License: GPL-3

Community examples

Looks like there are no examples yet.