Re: [Rd] odesolve dynload example

2008-09-16 Thread Peter Dalgaard
Redding, Matthew wrote: Hello R Developers, This is my first foray into using c-code with R, so please forgive my foolishness. I had a look at the archives and did not find anything on this, so hopefully I am not doubling up. I have tried to use R cmd to create an object file from the odesolve

[Rd] WRONG mailing list - Re: question in value-based color in image()

2008-09-16 Thread Martin Maechler
Please do use R-help, (not R-devel) for such questions. M == M [EMAIL PROTECTED] on Mon, 15 Sep 2008 22:42:22 -0400 writes: M Hello, I have a matrix with value varying from -1 to 1. M I hope to use scaled color based on its value to produce M an image of this matrix. M

Re: [Rd] question in value-based color in image()

2008-09-16 Thread Uwe Ligges
M. wrote: Hello, I have a matrix with value varying from -1 to 1. I hope to use scaled color based on its value to produce an image of this matrix. Suppose I hope to label those data in [-1,-0.5] with blue, label those [-0.5,0.8] with light blue (tone is proportional to its value) and label

[Rd] aggregate() does not return POSIXct object correctly (PR#12887)

2008-09-16 Thread rene . locher
Full_Name: Rene Locher Version: 2.7.2 Patched (2008-09-12 r46541) OS: XP Submission from: (NULL) (160.85.231.40) dat - data.frame(event=factor(c(A,A,B)), time=as.POSIXct(c(2008-01-10,2008-01-01,2008-01-04))) min(dat$time) ## 2008-01-01 CET ## as expected

Re: [Rd] aggregate() does not return POSIXct object correctly (PR#12887)

2008-09-16 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: Full_Name: Rene Locher Version: 2.7.2 Patched (2008-09-12 r46541) OS: XP Submission from: (NULL) (160.85.231.40) dat - data.frame(event=factor(c(A,A,B)), time=as.POSIXct(c(2008-01-10,2008-01-01,2008-01-04))) min(dat$time) ## 2008-01-01 CET ##

Re: [Rd] aggregate() does not return POSIXct object correctly (PR#12887)

2008-09-16 Thread Gabor Grothendieck
On Tue, Sep 16, 2008 at 11:22 AM, Peter Dalgaard [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Full_Name: Rene Locher Version: 2.7.2 Patched (2008-09-12 r46541) OS: XP Submission from: (NULL) (160.85.231.40) dat - data.frame(event=factor(c(A,A,B)),

Re: [Rd] odesolve dynload example

2008-09-16 Thread Thomas Petzoldt
Hi Matthew, thank you for the bug report, Woodrow Setzer just uploaded a minor bugfix and I assume he informed you off-list. One additional note for the records: We suggest odesolve users should switch over to the new deSolve package. It is maintained by the the same (and two additional)

Re: [Rd] odesolve dynload example

2008-09-16 Thread Setzer . Woodrow
I'm the maintainer of odesolve. In the ...odesolve/dynload/c directory of the windows distribution are two files that should not be: mymod.o and mymod.so (I just noticed them). Try deleting them and rerunning your compilation. By the way, you might want to take a look at deSolve, which

Re: [Rd] odesolve dynload example

2008-09-16 Thread Redding, Matthew
Thanks so much for the answer. I will let you know how things go. I will definitely look into desolve Kind regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 16 September 2008 10:28 PM To: Peter Dalgaard Cc:

Re: [Rd] odesolve dynload example

2008-09-16 Thread Redding, Matthew
Hi Woodrow, Peter and others. Getting rid of those excess files smoothed the process a little: Rcmd SHLIB mymod.c C:\Program Files\R\R-2.7.2\library\odesolve\dynload\cRcmd SHLIB mymod.c gcc -std=gnu99 -IC:/PROGRA~1/R/R-27~1.2/include -O3 -Wall -c mymod.c -o mymod.o gcc -std=gnu99

Re: [Rd] odesolve dynload example

2008-09-16 Thread Redding, Matthew
Excuse me, my mistake. Of course on windows the Rcmd SHLIB makes a DLL... not a .so file. So with the modification to the R script, it now works beautifully! Thanks to all for your patience. Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of