R/exit.R

Defines functions exit

####################################################################################################################################
################################## exit ############################################################################################
# >>
exit <- function() {
    opt = options(show.error.messages = FALSE)
    on.exit(options(opt))
    stop()
}
# <<
################################## exit ############################################################################################
####################################################################################################################################


####################################################################################################################################
################################## exit (old) ######################################################################################
# >>
# exit <- function() {
#     .Internal(.invokeRestart(list(NULL, NULL), NULL))
# }
# <<
################################## exit (old) ######################################################################################
####################################################################################################################################
Stasharofi/ypssc documentation built on Dec. 18, 2021, 2:08 p.m.