Re: [R] debug vs regular mode

2012-08-10 Thread Zhang, Peng
If you read my bug report, I just ran the same thing on both regular mode and debug mode. That is why I think it is related with R base, though there might be some other bugs related with glmulti or rJava. Peng On 08/10/2012 04:03 PM, peter dalgaard wrote: > On Aug 10, 2012, at 21:23 , Zhang, P

Re: [R] debug vs regular mode

2012-08-10 Thread Zhang, Peng
Ok. I will stop here. I have just created a bug report. https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15013 If anyone is interested, please see if you can reproduce it. Thanks, Peng On 08/10/2012 03:04 PM, peter dalgaard wrote: > Not to spoil your fun, but this is getting a bit off-topic

Re: [R] debug vs regular mode

2012-08-10 Thread peter dalgaard
On Aug 10, 2012, at 21:23 , Zhang, Peng wrote: > Ok. I will stop here. I have just created a bug report. > > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15013 ...which is exactly what you should NOT do, if the bug is likely to live in a contributed package!! -pd > > If anyone is i

Re: [R] debug vs regular mode

2012-08-10 Thread peter dalgaard
Not to spoil your fun, but this is getting a bit off-topic for R-help. If you wish to continue the debugging process in public, I think you should move to R-devel. Also, it sounds like the problem is in the glmulti package, so you might want to involve its maintainer at some point. -pd On A

Re: [R] debug vs regular mode

2012-08-10 Thread Zhang, Peng
Thanks! It is interesting that Windows has pointed the problem to Java. So it is probable that how I did my debug led me to the wrong direction. Since I was unsure how to debug S4 class, I copied the source implement R function from glmulti package into my testing program. The segmentation faul

Re: [R] debug vs regular mode

2012-08-10 Thread Henric (Nilsson) Winell
On 2012-08-10 15:42, Zhang, Peng wrote: You are right. I am running Arch Linux. However, I obtained a segmentation directly, so didn't know where to find the bug?? > library("glmulti") Loading required package: rJava > testdata = cbind(Y=rnorm(100), data.frame(matrix(rnorm(100*50), ncol =

Re: [R] debug vs regular mode

2012-08-10 Thread Zhang, Peng
You are right. I am running Arch Linux. However, I obtained a segmentation directly, so didn't know where to find the bug?? > library("glmulti") Loading required package: rJava > testdata = cbind(Y=rnorm(100), data.frame(matrix(rnorm(100*50), ncol = 50))) > glmulti(Y~(X1+X2+X3+X4+X5+X6+X7+X8

Re: [R] debug vs regular mode

2012-08-10 Thread Henric (Nilsson) Winell
On 2012-08-10 06:10, Zhang, Peng wrote: Thanks to both for your reply. library(glmulti) testdata = cbind(Y=rnorm(100), data.frame(matrix(rnorm(100*50), ncol = 50))) glmulti(Y~(X1+X2+X3+X4+X5+X6+X7+X8+X9+X10+X11+X12+X13+X14+X15)*X16, data = testdata, level = 2) This is reproducible to get a seg

Re: [R] debug vs regular mode

2012-08-09 Thread Zhang, Peng
Thanks to both for your reply. library(glmulti) testdata = cbind(Y=rnorm(100), data.frame(matrix(rnorm(100*50), ncol = 50))) glmulti(Y~(X1+X2+X3+X4+X5+X6+X7+X8+X9+X10+X11+X12+X13+X14+X15)*X16, data = testdata, level = 2) This is reproducible to get a segmentation fault. But I have troubles to e

Re: [R] debug vs regular mode

2012-08-09 Thread R. Michael Weylandt
On Aug 9, 2012, at 9:14 PM, David Winsemius wrote: > > On Aug 9, 2012, at 4:56 PM, Zhang, Peng wrote: > >> Dear all, >> >> I had a R segmentation fault, and then invoked debug mode and ran step >> by step. > > >> 2. Why does the same function behave differently under debug and regular >> m

Re: [R] debug vs regular mode

2012-08-09 Thread David Winsemius
On Aug 9, 2012, at 4:56 PM, Zhang, Peng wrote: Dear all, I had a R segmentation fault, and then invoked debug mode and ran step by step. When I reached "terms(Y~X1*X2*...*X16)", I would then have "segmentation" fault. However, if I just ran this under regular "R interactive" mode, it would be

[R] debug vs regular mode

2012-08-09 Thread Zhang, Peng
Dear all, I had a R segmentation fault, and then invoked debug mode and ran step by step. When I reached "terms(Y~X1*X2*...*X16)", I would then have "segmentation" fault. However, if I just ran this under regular "R interactive" mode, it would be fine though taking long time. My questions are