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) ######################################################################################
####################################################################################################################################

Try the ypssc package in your browser

Any scripts or data that you put into this service are public.

ypssc documentation built on Nov. 28, 2021, 1:06 a.m.