Re: [Rd] non user-friendly error for chol2inv functions

2008-08-29 Thread Martin Maechler
> "TH" == Ted Harding <[EMAIL PROTECTED]> > on Fri, 29 Aug 2008 14:21:05 +0100 (BST) writes: TH> On 29-Aug-08 13:00:01, Martin Maechler wrote: >>> "cd" == christophe dutang <[EMAIL PROTECTED]> >>> on Fri, 29 Aug 2008 14:28:42 +0200 writes: >> cd> Yes, I do

Re: [Rd] non user-friendly error for chol2inv functions

2008-08-29 Thread Ted Harding
On 29-Aug-08 13:00:01, Martin Maechler wrote: >> "cd" == christophe dutang <[EMAIL PROTECTED]> >> on Fri, 29 Aug 2008 14:28:42 +0200 writes: > > cd> Yes, I do not cast the first argument as a matrix with > cd> as.matrix function. > cd> Maybe we could detail the error message if the fir

Re: [Rd] non user-friendly error for chol2inv functions

2008-08-29 Thread Martin Maechler
> "cd" == christophe dutang <[EMAIL PROTECTED]> > on Fri, 29 Aug 2008 14:28:42 +0200 writes: cd> Yes, I do not cast the first argument as a matrix with as.matrix function. cd> Maybe we could detail the error message if the first argument is a numeric? cd> error(_("'a' is

Re: [Rd] non user-friendly error for chol2inv functions

2008-08-29 Thread christophe dutang
Yes, I do not cast the first argument as a matrix with as.matrix function. Maybe we could detail the error message if the first argument is a numeric? error(_("'a' is a numeric and must be coerced to a numeric matrix")); Thanks for your answer 2008/8/29 Martin Maechler <[EMAIL PROTECTED]> > >>

Re: [Rd] non user-friendly error for chol2inv functions

2008-08-29 Thread Martin Maechler
> "cd" == christophe dutang <[EMAIL PROTECTED]> > on Fri, 29 Aug 2008 12:44:18 +0200 writes: cd> Hi, cd> In function chol2inv with the option LINPACK set to false (default), it cd> raises an error when the matrix is 1x1 matrix (i.e. just a real) saying cd> 'a' must be