[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 'identica

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": So, I just added the generic definition to my package, making with warnings go away. as.array

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?

[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

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

2010-12-10 Thread Tal Galili
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 an example: # first, let's set the locale to Hebrew Sys.setlocale("LC_ALL", "Hebrew") # Setting locale x <- "של×