Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Mark Kimpel
Thanks, no problem for me to wait for the fix. It's just nice to know that I was able to help improve R in a small way by using R-devel. Usually, it is ME making the error! Thanks again for all your development efforts. Cheers, Mark Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry Ind

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Duncan Murdoch
Okay, I've tracked this down, and it's a stupid error I made when trying to improve the error messages. I tried to make the parser remember its position in a file when parsing it line by line so that it could report on syntax errors properly; the trouble is that when it executes one of those l

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Duncan Murdoch
On 16/09/2009 8:46 PM, Mark Kimpel wrote: Okay, now that I knew what to look at, I've narrowed to the problem down to the line 'source("~/R.functions/General_Functions/my.update.packages.func.R")' Never mind my other request, I've got it now. I'm not sure what's going wrong, but I can reprod

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Mark Kimpel
Okay, now that I knew what to look at, I've narrowed to the problem down to the line 'source("~/R.functions/General_Functions/my.update.packages.func.R")' if just this line is commented out, R loads fine. If not, it crashes reliably. Interestingly, if commented out, once R is loaded, the function

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Mark Kimpel
Below is my .Rprofile and the my.update.packages function that it calls (which is in the right place and has not caused problems before). As I was writing this, R just finished compiling using gcc-4.3. R once again crashes as it did with the 4.4 compile. Just for completeness, immediately below is

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Duncan Murdoch
On 16/09/2009 7:48 PM, Mark Kimpel wrote: Peter, I have not yet tried Simon's suggestion of using gcc 4.3 (just got back from a meeting), but running your commands produces the output below. As you can see, R --vanilla works, but just plain "R" doesn't. See the results of gdb far below. That's

Re: [Rd] S3 objects in S4 slots

2009-09-16 Thread John Chambers
Duncan Murdoch wrote: On 16/09/2009 12:50 PM, John Chambers wrote: 2. Restricting the revision to setOldClass() leads to a clean concept, and makes the S3 class more compatible with S4 classes. The proposal at the moment is to interpret the setOldClass call much like the corresponding setCl

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Mark Kimpel
Peter, I have not yet tried Simon's suggestion of using gcc 4.3 (just got back from a meeting), but running your commands produces the output below. As you can see, R --vanilla works, but just plain "R" doesn't. See the results of gdb far below. I do not have a saved workspace in my R_HOME or any

Re: [Rd] S3 objects in S4 slots

2009-09-16 Thread Duncan Murdoch
On 16/09/2009 12:50 PM, John Chambers wrote: Martin Kober wrote: 2009/9/15 John Chambers : I'll look at this in more detail (though not for a few days), but the essence I think is that nothing in the current version allows one to say the S3 equivalent of setClass("VCorpus", contains = "list

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Peter Dalgaard
Mark Kimpel wrote: I just downloaded R-devel and when loaded it immediately segfaults. I'm not sure how much or what sort of diagnostic info and can provide, but below is my build script, my console output, and the output of uname -r. I am currently dependent on the development version of a packa

Re: [Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Simon Urbanek
Mark, On Sep 16, 2009, at 15:51 , Mark Kimpel wrote: I just downloaded R-devel and when loaded it immediately segfaults. I'm not sure how much or what sort of diagnostic info and can provide, At the very least something like R -d gdb and the output of bt would be helpful. Then in general th

[Rd] 2.10.0 Under development (unstable) (2009-09-15 r49711) just built segfaults on Debian Squeeze

2009-09-16 Thread Mark Kimpel
I just downloaded R-devel and when loaded it immediately segfaults. I'm not sure how much or what sort of diagnostic info and can provide, but below is my build script, my console output, and the output of uname -r. I am currently dependent on the development version of a package, so I'd like to ge

Re: [Rd] S3 objects in S4 slots

2009-09-16 Thread John Chambers
Martin Kober wrote: > 2009/9/15 John Chambers : > >> I'll look at this in more detail (though not for a few days), but the >> essence I think is that nothing in the current version allows one to say the >> S3 equivalent of >> >> setClass("VCorpus", contains = "list", ) >> >> Seems a (minor,

Re: [Rd] Building R package with .c sub-routine files

2009-09-16 Thread William Dunlap
> -Original Message- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of > pleyd...@supagro.inra.fr > Sent: Wednesday, September 16, 2009 7:35 AM > To: Kjell Konis > Cc: r-devel@r-project.org > Subject: Re: [Rd] Building R package with .c sub-routin

Re: [Rd] Building R package with .c sub-routine files

2009-09-16 Thread pleydell
Create a file named Makevars in the same directory and put the following line in it: OBJECTS=file1.o Then R CMD SHLIB will only compile file1.c. Kjell Great, that's done the job nicely. Many thanks David __ R-devel@r-project.org mailing list htt

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread Abhijit Bera
Thanks guys. I see the mistake I was doing. I was forgetting an argument; that's why I wasn't getting the output. "[" is a function. On 9/16/09, mtmor...@fhcrc.org wrote: > > Quoting Abhijit Bera : > > I'm trying to get a reference to this object in C >> >> SWX.RET[1:6,c("SBI,"SPI","SII")] >> >>

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread mtmorgan
Quoting Abhijit Bera : I'm trying to get a reference to this object in C SWX.RET[1:6,c("SBI,"SPI","SII")] While i am able to access and use a plain SWX.RET object, I'm getting confused on how to create an object with the array subscripts like above. Here is what I tried to do. It doesn't work

Re: [Rd] r-forge.r-project.org down?

2009-09-16 Thread Martin Maechler
> "j...@v" == Joris @ VU > on Wed, 16 Sep 2009 12:02:23 +0200 writes: j...@v> Hello there fellow developers, j...@v> Is it just me or does the r-forge server seem to be down? No, we've seen the problem at least in the USA and in Switzerland as well. j...@v> Neither http

[Rd] r-forge.r-project.org down?

2009-09-16 Thread Joris @ VU
Hello there fellow developers, Is it just me or does the r-forge server seem to be down? Neither http or the scm repositories seem to work. Does anybody have any idea when it could be up again? Best, Joris [[alternative HTML version deleted]] __

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread Romain Francois
On 09/16/2009 09:40 AM, Abhijit Bera wrote: So I should use the R parser? If you want to parse R code, yes Actually I'm trying to develop a JS interface for R. So I'm terribly confused with the design aspects. Won't parsing be slower? sure. but I suspect SWX.RET[1:6,c("SBI,"SPI","SII")] is

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread Abhijit Bera
So I should use the R parser? Actually I'm trying to develop a JS interface for R. So I'm terribly confused with the design aspects. Won't parsing be slower? Is there a better way to do what I'm doing other than parsing? Regards Abhijit On Wed, SSep 16, 2009 at 12:48 PM, Romain Francois < rom

Re: [Rd] I want to get a reference to this time series object

2009-09-16 Thread Romain Francois
Hi, Luckily, R has its own parser, so you don't have to reimplement it. Just parse your string 'SWX.RET[1:6,c("SBI,"SPI","SII")]' and eval the parsed expression(s). The R_ParseVector function will help you. Romain On 09/16/2009 09:02 AM, Abhijit Bera wrote: I'm trying to get a reference to

[Rd] I want to get a reference to this time series object

2009-09-16 Thread Abhijit Bera
I'm trying to get a reference to this object in C SWX.RET[1:6,c("SBI,"SPI","SII")] While i am able to access and use a plain SWX.RET object, I'm getting confused on how to create an object with the array subscripts like above. Here is what I tried to do. It doesn't work because "[" is obviously