-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathectdStop.R
executable file
·20 lines (18 loc) · 972 Bytes
/
ectdStop.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"ectdStop" <- function (msg, call. = TRUE, domain = NULL, verbose = getEctdVerbose())
{
###############################################################################
# Mango Solutions, Chippenham SN15 1BN 2009
# ectdStop.R 02DEC09
# Author: R.Pugh
###############################################################################
# DESCRIPTION: generate error message
# KEYWORDS: error, component:support
###############################################################################
try(
msg <- if (verbose).strinterp(msg) %.n% "----------------------------------------------------------------------" %.n%
paste(sapply(sys.calls(),
function(x) as.character(x[[1]])),
collapse = " > ") %.n% "----------------------------------------------------------------------"
else .strinterp(msg), silent = TRUE)
stop(msg)
}