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 i

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. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

[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 __ R-devel@r-

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 r

[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] 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 Mo

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 exa

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] 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

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: >> >> >

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

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 C

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] wr

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