exit_from_parent_function: Exit from a Parent Function

View source: R/exit_from_parent_function.R

exit_from_parent_functionR Documentation

Exit from a Parent Function

Description

Exit from a Parent Function

Usage

exit_from_parent_function(
  n = 1,
  silent = FALSE,
  message = "Exiting from a parent function"
)

Arguments

n

the number of generations to go back (default = 1)

silent

logical. If silent = TRUE, a message will be printed.

message

message to print

Examples

fn1 <- function() {
print(1)
print(2)
}
fn1()
fn2 <- function() {
print(1)
exit_from_parent_function()
print(2)
}
fn2()

jinkim3/kim documentation built on Feb. 26, 2025, 10:03 a.m.