search for: file46641af8754

Displaying 1 result from an estimated 1 matches for "file46641af8754".

2013 Mar 19
1
source, sys.source and error line numbers
...# some good lines + a <- 1 + # a bad line + stop('an error') + # another good line + b <- 2 + ", file=codefile) > # with source() the line number is displayed > source(codefile) Error in eval(expr, envir, enclos) : an error > traceback() 5: stop("an error") at file46641af8754#5 4: eval(expr, envir, enclos) 3: eval(ei, envir) 2: withVisible(eval(ei, envir)) 1: source(codefile) > tryCatch(source(codefile), error= function(e){ str(e) }) List of 2 $ message: chr "an error" $ call : language eval(expr, envir, enclos) - attr(*, "class")= chr [1:3]...