Re: [Rd] Parameter changes and segfault when calling C code through .Call

2007-01-04 Thread Seth Falcon
"Michael Braun" <[EMAIL PROTECTED]> writes: > Suppose I want to compute the log density of a multivariate normal > distribution using C code and the gsl library. My R program is: > > dyn.load("mvnorm-logpdf.so") > > x<-c(0,0,0,0,0,0) > mu<-c(0,0,0,0,0,0) > sig<-diag(6) >

[Rd] Parameter changes and segfault when calling C code through .Call

2007-01-04 Thread Michael Braun
I am experiencing some odd behavior with the .Call interface, and I am hoping someone out there can help me with it. Below is a simple example (in that there are R packages that do exactly what I want), but this code illustrates the problem. Thanks in advance for any help you can provide. Sup