Re: [Rd] Where's code for binding values to formal arguments in functions?

2009-02-08 Thread Prof Brian Ripley
Have you studied d the R-ints manual? It is a complex process, since in fact it is promises which are bound. The code for that is in match.c: matchArgs. In general, you will not find people willing to read the source code for you, and especially if you give no reason for your 'wants'. On Su

[Rd] Where's code for binding values to formal arguments in functions?

2009-02-08 Thread Yi Zhang
Hello, Can anyone give me a pointer where to find the implementation code for binding values to formal arguments in functions? For example, if we have a function f <- function(x,y)... and f(1,2) is called, I want to find the code that binds 1 to x when evaluating f(1,2). I tried eval.c but it's to

Re: [Rd] Strange behavior of C compiled program

2009-02-08 Thread Mathieu Ribatet
Hi Christophe, The problem might be that you used %d when printing. I guess that your variables dist and tmp are double so you have to use %f instead. Best, Mathieu Le dimanche 08 février 2009 à 23:37 +0100, Christophe Genolini a écrit : > Hi the list, > > I need to include some C code in R, bu

Re: [Rd] Strange behavior of C compiled program

2009-02-08 Thread Duncan Murdoch
On 08/02/2009 5:37 PM, Christophe Genolini wrote: Hi the list, I need to include some C code in R, but the behavior of the C code is strange : Here is my code : --- 8< --- Rprintf("\n mTraj=%f mClus=%f",mTraj[i+nbId*c],mClustersCenter[j+nbClusters*c]); Rprintf("\nDistA=%d Tmp=%

[Rd] Strange behavior of C compiled program

2009-02-08 Thread Christophe Genolini
Hi the list, I need to include some C code in R, but the behavior of the C code is strange : Here is my code : --- 8< --- Rprintf("\n mTraj=%f mClus=%f",mTraj[i+nbId*c],mClustersCenter[j+nbClusters*c]); Rprintf("\nDistA=%d Tmp=%d",dist,tmp); tmp = mTraj[i+nbId* c] - mCl

Re: [Rd] Small typo in error message of R-devel

2009-02-08 Thread Duncan Murdoch
On 08/02/2009 4:32 PM, Rainer Hurling wrote: Trying out some encodings and locales I just found a small typo in an error message of R 2.9.0 (2009-02-06 r47865). In 'po/de.po' at line 5100 it has to be spelled 'Lokalisierung' instead of 'Lokilisierung'. Thanks. For future reference, correcti

[Rd] Small typo in error message of R-devel

2009-02-08 Thread Rainer Hurling
Trying out some encodings and locales I just found a small typo in an error message of R 2.9.0 (2009-02-06 r47865). In 'po/de.po' at line 5100 it has to be spelled 'Lokalisierung' instead of 'Lokilisierung'. Rainer __ R-devel@r-project.org mailing