Re: [R] .Call function crashes initializing matrix

2010-04-11 Thread William Dunlap
> -Original Message- > From: Erik Wright [mailto:eswri...@wisc.edu] > Sent: Sunday, April 11, 2010 1:59 PM > To: William Dunlap > Cc: r help > Subject: Re: [R] .Call function crashes initializing matrix > > Hi Bill, > > You were right, thanks! > &

Re: [R] .Call function crashes initializing matrix

2010-04-11 Thread Erik Wright
f Of Erik Wright >> Sent: Saturday, April 10, 2010 3:23 PM >> To: r help >> Subject: [R] .Call function crashes initializing matrix >> >> Hello, >> >> I have a C function that I call from R using .Call. I >> recently discovered a bug in my code, and I a

Re: [R] .Call function crashes initializing matrix

2010-04-10 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Wright > Sent: Saturday, April 10, 2010 3:23 PM > To: r help > Subject: [R] .Call function crashes initializing matrix > > Hello, > > I have

[R] .Call function crashes initializing matrix

2010-04-10 Thread Erik Wright
Hello, I have a C function that I call from R using .Call. I recently discovered a bug in my code, and I am not sure if it is a problem with what I am doing in C or if it has something to do with my use of .Call. I have narrowed my problem down to these two C statements: int size = 5000; doubl