[Rd] Consistency of variable storage in R and Sys.setlocale (is this a feature or bug)?

2010-12-10 Thread Tal Galili
I was not sure if this should go to R-devel or R-help. If I e-mailed this to the wrong place, please let me know. Hello dear R-devel members, I came by an oddity, with regards to how character variables are being transformed when they are in Hebrew, and when Sys.setlocale is changed. Here is

[Rd] How to call DBLEPR in Fortran code to be used by R

2010-12-10 Thread Marian K Talbert
Hi I've built a dll using Fortran code and can call it by either R or Fortran. Calling by the former gives me the wrong answer and the later gives the correct answer. From what I've read, it looks like I should use the subroutines DBLEPR, INTPR and REALPR to get values to show up in R which

Re: [Rd] How to call DBLEPR in Fortran code to be used by R

2010-12-10 Thread Duncan Murdoch
On 09/12/2010 1:11 PM, Marian K Talbert wrote: Hi I've built a dll using Fortran code and can call it by either R or Fortran. Calling by the former gives me the wrong answer and the later gives the correct answer. That sounds like a type problem. Are you using double precision variables?

Re: [Rd] warning creating an as.array method in a package

2010-12-10 Thread Michael Friendly
I found a solution to this problem, but don't understand why it was necessary. In a clean workspace, I get: methods(as.array) [1] as.array.default showMethods(as.array) Function as.array: not a generic function So, I just added the generic definition to my package, making with warnings go

[Rd] 'identical' and the warning ignoring non-pairlist attributes

2010-12-10 Thread Niels Richard Hansen
Dear R developers Using the 'foreach' package I encounter warnings like Warning message: In identical(.combine, cbind) : ignoring non-pairlist attributes Warnings appear once in a new R-session when I run a particular piece of code - and not again. I understand from the source code of