[Rd] Derivative of model formula

2010-04-20 Thread Dimitris Rizopoulos
Dear All, I'd like to ask fro any pointers to code in any package out there that can (even partially) handle the following situation: say we have the linear model # toy data y - rnorm(100) time - runif(100, 0, 5) treat - gl(2, 50, labels = c(placebo, active)) sex - gl(2, 1, 100, labels =

Re: [Rd] CRAN: MacOS X binary: not available, see check log?

2010-04-20 Thread Henrik Bengtsson
Hi, On Thu, Apr 15, 2010 at 3:45 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 15, 2010, at 2:26 AM, Henrik Bengtsson wrote: For a couple of days, MacOS X binaries are not build on CRAN (for my recently uploaded packages only?): AFAICS your package was posted on Apr 13 so at

Re: [Rd] callNextMethod() and NAMESPACE

2010-04-20 Thread Henrik Bengtsson
It could be that you define the below in two different source files and you are only updating the first and it is overwritten by the second which you never edit? /Henrik On Thu, Apr 15, 2010 at 4:21 PM, Adrian Waddell adr...@waddell.ch wrote: Hello there, I define a accessor method for one of

Re: [Rd] Issue with aggregate.ts and/or %\% on Windows

2010-04-20 Thread Prof Brian Ripley
However, in this case it is the use of %/% that is wrong: the fuzz ts.eps is supposed to be used. Will alter (in R-devel for now). On Tue, 20 Apr 2010, Peter Dalgaard wrote: Patrick Aboyoun wrote: I've stumbled across an issue with aggregate.ts that either is due to a misuse of %/% or

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Melissa Jane Hubisz
Thanks for the responses. Seth's example is indeed what I was trying (hoping) to do, it seems to work on my system fine (ubuntu x86_64, R 2.10.1). But if it doesn't work for him, then that definitely answers my question. I guess I'll have to go the Calloc/Free route. Thanks, Melissa On Mon,

Re: [Rd] CRAN: MacOS X binary: not available, see check log?

2010-04-20 Thread Simon Urbanek
On Apr 20, 2010, at 2:57 AM, Henrik Bengtsson wrote: Hi, On Thu, Apr 15, 2010 at 3:45 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 15, 2010, at 2:26 AM, Henrik Bengtsson wrote: For a couple of days, MacOS X binaries are not build on CRAN (for my recently uploaded

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Simon Urbanek
On Apr 19, 2010, at 1:22 PM, Seth Falcon wrote: On 4/19/10 8:59 AM, Simon Urbanek wrote: On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: Hello, The Writing R extensions manual section 6.1.1 describes the transient memory allocation function R_alloc, and states that memory

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Simon Urbanek
On Apr 20, 2010, at 10:12 AM, Simon Urbanek wrote: On Apr 19, 2010, at 1:22 PM, Seth Falcon wrote: On 4/19/10 8:59 AM, Simon Urbanek wrote: On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: Hello, The Writing R extensions manual section 6.1.1 describes the transient memory

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread luke
On Tue, 20 Apr 2010, Simon Urbanek wrote: On Apr 19, 2010, at 1:22 PM, Seth Falcon wrote: On 4/19/10 8:59 AM, Simon Urbanek wrote: On Apr 19, 2010, at 10:39 AM, Melissa Jane Hubisz wrote: Hello, The Writing R extensions manual section 6.1.1 describes the transient memory allocation

[Rd] Serial connections?

2010-04-20 Thread Blair Christian
Does anybody know if there is any support to read from serial ports? I just got an arduino, and wanted to write some scripts for working with real time streaming sensor data... In base::connections documentation, it's not clear if there's an easy way to do this? Any ideas on hacking it? I'm

Re: [Rd] CRAN: MacOS X binary: not available, see check log?

2010-04-20 Thread Henrik Bengtsson
On Tue, Apr 20, 2010 at 3:58 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 20, 2010, at 2:57 AM, Henrik Bengtsson wrote: Hi, On Thu, Apr 15, 2010 at 3:45 PM, Simon Urbanek simon.urba...@r-project.org wrote: On Apr 15, 2010, at 2:26 AM, Henrik Bengtsson wrote: For a couple

Re: [Rd] Serial connections?

2010-04-20 Thread Simon Urbanek
On Apr 20, 2010, at 10:33 AM, Blair Christian wrote: Does anybody know if there is any support to read from serial ports? I just got an arduino, and wanted to write some scripts for working with real time streaming sensor data... Yes (I have Arduinos reporting measurements from all

Re: [Rd] Serial connections?

2010-04-20 Thread shotwelm
I've done some microcontroller work over serial also. Unfortunately, interfacing with a serial port is system dependent, and the mechanisms can be quite different, as you probably know. It appears that Simon has a solution below that will work if you are willing to accept the default baud rate

Re: [Rd] transient memory allocation and external pointers

2010-04-20 Thread Seth Falcon
On 4/20/10 6:24 AM, Melissa Jane Hubisz wrote: Thanks for the responses. Seth's example is indeed what I was trying (hoping) to do, it seems to work on my system fine (ubuntu x86_64, R 2.10.1). But if it doesn't work for him, then that definitely answers my question. I guess I'll have to go

Re: [Rd] Serial connections?

2010-04-20 Thread Simon Urbanek
On Apr 20, 2010, at 11:51 AM, shotwelm wrote: I've done some microcontroller work over serial also. Unfortunately, interfacing with a serial port is system dependent, and the mechanisms can be quite different, as you probably know. It appears that Simon has a solution below that will work

Re: [Rd] Serial connections?

2010-04-20 Thread shotwelm
Simon is right of course, there are plenty of sensors that would work just fine at 9600 baud (like a thermistor rigged to an ADC). There's a theorem along these lines (Nyquist sampling theorem?). I think piping the output to R is a clever solution. I added a few lines to the ttys.c program so that