[Rd] Writing R Extensions: bad example with CAR / CDR as lvalues (PR#11054)

2008-03-31 Thread sanders
Full_Name: Simon Anders Version: 2.6.2 OS: Ubuntu Linux Submission from: (NULL) (86.22.75.91) This is a rather minor documentation bug, certainly not at all urgent. The manual Writing R extensions explains in section 5.10 (Evaluating R expressions from C) how to use the eval function. Without

Re: [Rd] norm_rand() in R-extension vs rnorm in R ---which is better?

2008-03-31 Thread Daniel Nordlund
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kyeongmi Cheon Sent: Saturday, March 29, 2008 9:09 PM To: r-devel@r-project.org Subject: [Rd] norm_rand() in R-extension vs rnorm in R ---which is better? I need to generate good quality of random

[Rd] package.skeleton.S4

2008-03-31 Thread Christophe Genolini
Hi the devel list. I am adapting the package.skeleton to S4 classes and methods I would have been very proud to post a new working function on this list. Unfortunately, I do not manage to solve all the problems. Mainly - sys.source does not compile a file with setClass - dumpMethod does not

[Rd] tests Rin and Rout

2008-03-31 Thread Christophe Genolini
Generally I find it's good to look at examples that work. For examples of packages using tests, look at source packages on CRAN. Run the tests on them (using R CMD check), and see what gets produced. Do you have the name of a package that use it ? I try the 10 first package, and 10

Re: [Rd] tests Rin and Rout

2008-03-31 Thread Prof Brian Ripley
Recommended packages cluster codetools foreign lattice nlme and rpart have tests, for example. (As do standard packages grDevices, grid and stats.) On Mon, 31 Mar 2008, Christophe Genolini wrote: Generally I find it's good to look at examples that work. For examples of packages using

Re: [Rd] S4: dumpMethod (PR#11053)

2008-03-31 Thread ripley
This was already addressed in the current version of R (2.7.0 alpha). You probably also want to look at how package.skeleton() handles S4 objects in that version of R. Please read up on what the FAQ asks you to do before submitting a bug, and in particular it says Third, if possible try the

Re: [Rd] (PR#11054) Writing R Extensions: bad example with CAR /

2008-03-31 Thread ripley
But it is not taken 'verbatim from src/main/print.c' (at least not in that version of R), and the code is not run with USE_RINTERNALS defined when write-barrier checking is enabled. The example has been updated to match the current code in 2.7.0 alpha. On Sun, 30 Mar 2008, [EMAIL PROTECTED]

Re: [Rd] tests Rin and Rout

2008-03-31 Thread Martin Maechler
CG == Christophe Genolini [EMAIL PROTECTED] on Mon, 31 Mar 2008 00:31:55 +0200 writes: Generally I find it's good to look at examples that work. For examples of packages using tests, look at source packages on CRAN. Run the tests on them (using R CMD check), and

Re: [Rd] tests Rin and Rout

2008-03-31 Thread Robin Hankin
On 31 Mar 2008, at 09:16, Martin Maechler wrote: CG == Christophe Genolini [EMAIL PROTECTED] on Mon, 31 Mar 2008 00:31:55 +0200 writes: Generally I find it's good to look at examples that work. For examples of packages using tests, look at source packages on CRAN. Run the tests on

Re: [Rd] tests Rin and Rout

2008-03-31 Thread Martin Maechler
ChrG == cgenolin [EMAIL PROTECTED] on Mon, 31 Mar 2008 10:58:33 +0200 writes: ChrG Martin Maechler [EMAIL PROTECTED] a écrit ChrG : CG == Christophe Genolini [EMAIL PROTECTED] on Mon, 31 Mar 2008 00:31:55 +0200 writes: Generally I find it's good to

Re: [Rd] data(lh) time serie parameters

2008-03-31 Thread Jean lobry
It seems they are using 10 minutes as the unit of measurement. If you wish to change it to hours you might want to use this instead: lh.hr - ts(lh, start = 0, frequency = 6) so that cycle(lh.hr) starts out at 1. Dear Gabor, yes, it is very likely that the original dataset was with a

Re: [Rd] package.skeleton.S4

2008-03-31 Thread John Chambers
Christophe, Thanks for your work; unfortunately, at the same time you were developing your version, the original function was being extended in the same direction. The version of package.skeleton() to be included in the 2.7.0 release of R will deal with S4 classes and methods. When you have

Re: [Rd] (PR#11054) Writing R Extensions: bad example with CAR /

2008-03-31 Thread ripley
On Mon, 31 Mar 2008, Simon Anders wrote: Dear Prof Ripley, Prof Brian Ripley wrote: But it is not taken 'verbatim from src/main/print.c' (at least not in that version of R), and the code is not run with USE_RINTERNALS defined when write-barrier checking is enabled. The example has

Re: [Rd] tests Rin and Rout

2008-03-31 Thread Paul Gilbert
Martin Maechler wrote: ChrG == cgenolin [EMAIL PROTECTED] on Mon, 31 Mar 2008 10:58:33 +0200 writes: ChrG Martin Maechler [EMAIL PROTECTED] a écrit ChrG : CG == Christophe Genolini [EMAIL PROTECTED] on Mon, 31 Mar 2008 00:31:55 +0200 writes:

[Rd] Compile dll in Windows XP

2008-03-31 Thread Pavlidis, Polykarpos
This is my first attempt to call a C function from R. I have installed Rtools,MinGW and Perl and I have included them in my system path. I am trying to compile a toy function that can be called in R but when I type RCMD SHLIB foo.c I receive the following message in my Command prompt: making

Re: [Rd] Compile dll in Windows XP

2008-03-31 Thread Duncan Murdoch
On 31/03/2008 4:59 PM, Pavlidis, Polykarpos wrote: This is my first attempt to call a C function from R. I have installed Rtools,MinGW and Perl and I have included them in my system path. I am trying to compile a toy function that can be called in R but when I type RCMD SHLIB foo.c I

[Rd] Call R from C#

2008-03-31 Thread guox
I would like to call functions/objects of R from C#.NET environment. I was wondering whether or not it is possible. If yes, could you please give me some suggestions on how to approach it (any examples/documentation on this)? Thanks! -James __

Re: [Rd] Compile dll in Windows XP

2008-03-31 Thread Pavlidis, Polykarpos
Thank you. I re-installed everything from the single pack in http://www.murdoch-sutherland.com/Rtools/ and everything works as my beginners' tutorials suggest it would. There was probably some discrepancy in the separate components I had installed earlier.

Re: [Rd] Call R from C#

2008-03-31 Thread Prof Brian Ripley
On Mon, 31 Mar 2008, [EMAIL PROTECTED] wrote: I would like to call functions/objects of R from C#.NET environment. I was wondering whether or not it is possible. If yes, could you please give me some suggestions on how to approach it (any examples/documentation on this)? Thanks! Yes, it is