Re: [Rd] c() poor error reporting (PR#13917)

2009-08-31 Thread Michael Spiegel
Hi, Thanks. I think I failed to communicate what I believe should be corrected. The error message itself contains correct information, it is what is missing from the error message that is desired. The message "argument is missing, with no default" does not inform the user in what function the e

Re: [Rd] Problem in matrix definition?

2009-08-31 Thread Uwe Ligges
Try to learn how to debug. The following copied from my R session might give you some hints: > options(error=recover) > geninv(a) Error in L[k:n, 1:(r - 1)] %*% (t(L[k, 1:(r - 1)])) : non-conformable arguments Enter a frame number, or 0 to exit 1: geninv(a) Selection: 1 Called from: eval(e

Re: [Rd] Problem in matrix definition?

2009-08-31 Thread Ted Harding
Does the following help to clarify things? >From your original two different definitions of the matrix 'a': mp <- 10 np <- 5 a <- matrix(c(1:mp*np),mp,np) a # [,1] [,2] [,3] [,4] [,5] # [1,]55555 # [2,] 10 10 10 10 10 # [3,] 15 15 15 1

Re: [Rd] S4 Generics and NAMESPACE : justified warning ?

2009-08-31 Thread Martin Maechler
> "YC" == Yohan Chalabi > on Fri, 28 Aug 2009 16:24:29 +0200 writes: > "MM" == Martin Morgan > on Tue, 18 Aug 2009 06:15:50 -0700 YC> Hi Martin, YC> Thanks for your response. MM> Commenting as a user, there's no guarantee that the MM> 'plot' generic

[Rd] Problem in matrix definition?

2009-08-31 Thread Fabio Mathias Corrêa
The problem is that arrays are the same size. The only difference is how they were built! The way to build the matrix should not influence in the outcome! Below is the commented code in MatLab! Neural Information Processing - Letters and Reviews Vol.8, No.2, August 2005 function Y = geninv(G)

Re: [Rd] Problem in matrix definition?

2009-08-31 Thread Mathieu Ribatet
Dear Fabio, The problem is that L[k,1:(r-1)] is not anymore a matrix but a vector. Hence when you do t(L[k,1:(r-1)]) you get a matrix with only one row while I think you expected one column instead. You can see this feature with a simpler example like the following one: x <- runif(10)

Re: [Rd] Problem in matrix definition?

2009-08-31 Thread Christos Hatzis
See details on subsetting ?"[" specifically the drop argument. To prevent the effects of drop() use L[k, 1:(r-1), drop=FALSE] -Christos > -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Mathieu Ribatet > Sent: Monday, Augu

Re: [Rd] Problem in matrix definition?

2009-08-31 Thread Fabio Mathias Corrêa
Thanks very much!!!   Fábio Mathias Corrêa Estatística e Experimentação Agropecuária/UFLA Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com _

[Rd] xy.coords assumes lists will have x and y components, but doesn't check (PR#13936)

2009-08-31 Thread richcalaway
Full_Name: Richard Calaway Version: 2.9.2 OS: Mac OS X 10.5.3 Submission from: (NULL) (65.47.30.18) Here's my sessionInfo(): > sessionInfo() R version 2.9.2 (2009-08-24) i386-apple-darwin8.11.1 locale: en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats

[Rd] setRepositories() doesn't allow graceful cancellation from GUI menu (PR#13937)

2009-08-31 Thread richcalaway
Full_Name: Richard Calaway Version: 2.9.2 OS: Windows Vista Submission from: (NULL) (65.47.30.18) If you call setRepositories(graphics=TRUE), or, equivalently, choose "Select repositories..." from RGui's Packages menu, and then click "Cancel", you are dropped to the command line menu. Choosing "

[Rd] Strange interaction of browser() and warnings

2009-08-31 Thread Rich Calaway
Hi, DevelopeRs, Consider the following simple function: myFun <- function(){ print(log(-1)) browser() print("Bye!") } With default settings (in particular, options(warn=0)), if you call this function and then type only standard browser commands (cont, n, where Q) at the b