Re: [R] .NAME in .Fortran

2012-09-12 Thread Prof Brian Ripley
On 11/09/2012 13:09, Duncan Murdoch wrote: On 12-09-10 9:21 PM, Peter Dunn wrote: Hi all I've been getting some emails from the R package maintainers that I need to update some code in a CRAN packge that uses FORTRAN, to comply with (not so recent) changes. I've been a little busy... I'm havi

Re: [R] .NAME in .Fortran

2012-09-11 Thread Rolf Turner
On 12/09/12 10:50, Duncan Murdoch wrote: On 12-09-11 4:44 PM, Rolf Turner wrote: Duncan: I experimented by using ".NAME =" in a call to .Fortran() in one of my packages and got the same error as Peter. I am definitely (!) using R version 2.15.1. Yes, Peter told me the same. Doing args(.Fo

Re: [R] .NAME in .Fortran

2012-09-11 Thread Duncan Murdoch
On 12-09-11 4:44 PM, Rolf Turner wrote: Duncan: I experimented by using ".NAME =" in a call to .Fortran() in one of my packages and got the same error as Peter. I am definitely (!) using R version 2.15.1. Yes, Peter told me the same. Doing args(.Fortran) gives: function (.NAME, ..., NAOK

Re: [R] .NAME in .Fortran

2012-09-11 Thread Rolf Turner
Duncan: I experimented by using ".NAME =" in a call to .Fortran() in one of my packages and got the same error as Peter. I am definitely (!) using R version 2.15.1. Doing args(.Fortran) gives: function (.NAME, ..., NAOK = FALSE, DUP = TRUE, PACKAGE, ENCODING) NULL If I replace ".NAME" by "n

Re: [R] .NAME in .Fortran

2012-09-11 Thread Duncan Murdoch
On 12-09-10 9:21 PM, Peter Dunn wrote: Hi all I've been getting some emails from the R package maintainers that I need to update some code in a CRAN packge that uses FORTRAN, to comply with (not so recent) changes. I've been a little busy... I'm having trouble adjusting my code. I hope someon

Re: [R] .NAME in .Fortran

2012-09-10 Thread Rolf Turner
I don't understand at all what the problem is, but a workaround is simply not to specify the "pdf" argument in "name=value" form but rather in positional form. I.e. just make it the first argument to .Fortran(). As in: tmp <- .Fortran("pdf", ) Works for me! :-) cheers, Rolf

[R] .NAME in .Fortran

2012-09-10 Thread Peter Dunn
Hi all I've been getting some emails from the R package maintainers that I need to update some code in a CRAN packge that uses FORTRAN, to comply with (not so recent) changes. I've been a little busy... I'm having trouble adjusting my code. I hope someone can help. The package was working fine