[Rd] Question on the R's C stack limit

2007-06-28 Thread zhangxiaoning
Hi, Simon all, I try to embed R in my win32 multiple threads program and get c stack error.I have tried to disable the stack limit by setting R_CStackLimit to -1.However, if I do this in R source code \src\gnuwin32\system.c (in functionR_SetWin32(Rstart Rp), after line R_CStackLimit = top -

[Rd] How to set R_CStackLimit

2007-06-28 Thread Xiaoning
Hi, I have tried to disable stack checking by set R_CStackLimit to -1. However, it always crashes my win32 multiple threads program. I am using R-2.5.0. My code looks like: #include Rversion.h #if (R_VERSION = R_Version(2,3,0)) #define R_INTERFACE_PTRS 1 #define CSTACK_DEFNS 1 #include

[Rd] signature() and setMethod() problems

2007-06-28 Thread Robin Hankin
I am having difficulty using signature(). I have one virtual class (onion) and two nonvirtual classes (quaternion and octonion). containing onion. I want to define three distinct sets of arithmetic operations: one for onion-onion, one for onion-real, and one for real-onion [this is more

Re: [Rd] signature() and setMethod() problems

2007-06-28 Thread Martin Maechler
Robin == Robin Hankin [EMAIL PROTECTED] on Thu, 28 Jun 2007 13:38:32 +0100 writes: Robin I am having difficulty using signature(). I have one Robin virtual class (onion) and two nonvirtual classes Robin (quaternion and octonion). containing onion. Robin I want to define

Re: [Rd] navel-gazing

2007-06-28 Thread Thomas Lumley
On Wed, 27 Jun 2007, Ben Bolker wrote: I did some trawling on the ISI web of science, selecting all papers citing all papers with R DEV COR TEAM in the author field (which is how ISI seems to be tagging things). It's not quite that simple. If people use the recommended citation then they

Re: [Rd] signature() and setMethod() problems

2007-06-28 Thread Prof Brian Ripley
On Thu, 28 Jun 2007, Martin Maechler wrote: Robin == Robin Hankin [EMAIL PROTECTED] on Thu, 28 Jun 2007 13:38:32 +0100 writes: Robin I am having difficulty using signature(). I have one Robin virtual class (onion) and two nonvirtual classes Robin (quaternion and octonion).

Re: [Rd] error message from lmer

2007-06-28 Thread Sebastian P. Luque
On Thu, 28 Jun 2007 06:08:45 +0100 (BST), Prof Brian Ripley [EMAIL PROTECTED] wrote: See the thread starting https://stat.ethz.ch/pipermail/r-devel/2007-June/046157.html https://stat.ethz.ch/pipermail/r-devel/2007-June/046160.html Thank you, I think I've indeed encountered the same issue

Re: [Rd] How to set R_CStackLimit

2007-06-28 Thread Prof Brian Ripley
First, Rinterface.h is not installed on Windows, so you must be using a header from within the R sources. You do so at your own peril! R_CStackLimit is only described in a Unix-specific section of 'Writing R Extensions'. The description there and Rinterface.h is designed for Unix compilers,

[Rd] minor flaw in integrate()

2007-06-28 Thread Peter Ruckdeschel
Hi, I noticed a minor flaw in integrate() from package stats: Taking up arguments lower and upper from integrate(), if (lower == Inf) (upper == Inf) or if (lower == -Inf) (upper == -Inf) integrate() calculates the value for (lower==-Inf) (upper==Inf). Rather, it should

[Rd] inaccuracy in qbinom with partial argument matching

2007-06-28 Thread Peter Ruckdeschel
Hi, I found the following strange effect with qbinom partial argument matching p0 - pbinom(0, size = 3, prob = 0.25) qbinom(p0, size = 3, prob = 0.25) ## 0 o.k. qbinom(p0-0.05, size = 3, prob = 0.25) ## 0 o.k. ## positional matching: qbinom(p0, 3,0.25) ## 0 o.k. ##

Re: [Rd] navel-gazing

2007-06-28 Thread Simon Blomberg
Also, for completeness you could add in the citation to Ihaka and Gentleman (1996). Otherwise it looks like nothing was happening before 2004. Cheers, Simon. On Thu, 2007-06-28 at 07:30 -0700, Thomas Lumley wrote: On Wed, 27 Jun 2007, Ben Bolker wrote: I did some trawling on the ISI web

[Rd] saving objects with embedded environments

2007-06-28 Thread McGehee, Robert
Hello, I have been running linear regressions on large data sets. As 'lm' saves a great deal of extraneous (for me) data including the residuals, fitted.values, model frame, etc., I generally set these to NULL within the object before saving off the model to a file. In the below example, however,