View source: R/exit_from_parent_function.R
exit_from_parent_function | R Documentation |
Exit from a Parent Function
exit_from_parent_function(
n = 1,
silent = FALSE,
message = "Exiting from a parent function"
)
n |
the number of generations to go back (default = 1) |
silent |
logical. If |
message |
message to print |
fn1 <- function() {
print(1)
print(2)
}
fn1()
fn2 <- function() {
print(1)
exit_from_parent_function()
print(2)
}
fn2()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.