search for: tp1574642p1574686

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

2010 Mar 02
1
capturing errors in Sweave
Hi, I'm writing a manual using Sweave and I want to be able to print errors from bad code. Here's an example: <Function-4a>>= MySqrt <- function(x) { if (missing(x)) { stop("'x' is missing with no default") } if (!is.numeric(x)) { stop("'x' should only be numeric") } if (x < 0) { stop("'x' should be