Re: [Rd] trouble building 2.10?

2009-08-18 Thread Prof Brian Ripley
You currently need builddir != srcdir, which is in any case is strongly recommended for those building from svn checkouts. We will either require that (many projects now do) or test building in the srcdir before the testing period starts. Similar comments hold about needing GNU make -- it is

[Rd] ?Random.user slightly out of sync with code (PR#13895)

2009-08-18 Thread ross
Full_Name: Ross Boylan Version: 2.7.1 OS: linux Submission from: (NULL) (38.99.193.74) The help says Optionally, functions 'user_unif_nseed' and 'user_unif_seedloc' can be supplied which are called with no arguments and should return pointers to the number of seeds and to an i

Re: [Rd] trouble building 2.10?

2009-08-18 Thread Simon Urbanek
On Aug 18, 2009, at 17:06 , Ben Bolker wrote: Should I expect to be able to build 2.10 at the moment? Yes (it works on my system) - when in doubt pull a fresh checkout (in general you cannot expect svn updates to build without full cleanup due to possible changes in the build process).

[Rd] trouble building 2.10?

2009-08-18 Thread Ben Bolker
Should I expect to be able to build 2.10 at the moment? Ubuntu intrepid Linux bolker-lap2 2.6.27-14-generic #1 SMP Wed Jul 29 09:01:45 UTC 2009 i686 GNU/Linux Gnu Make 3.81 gcc 4.3.2 === svn update Restored 'src/library/Makefile.in' At revision 49309. ./configure [...]

Re: [Rd] S4: inheritance of validity methods?

2009-08-18 Thread Vitalie S.
On Tue, 18 Aug 2009 18:58:27 +0200, Martin Morgan wrote: Vitalie S. wrote: On Tue, 18 Aug 2009 15:42:48 +0200, Martin Morgan wrote: "Vitalie S." writes: Dear Developers, In current implementation of validity method, objects are first coerced to superclass (slots are striped). Thus, i

Re: [Rd] S4: inheritance of validity methods?

2009-08-18 Thread Martin Morgan
Vitalie S. wrote: > On Tue, 18 Aug 2009 15:42:48 +0200, Martin Morgan > wrote: > >> "Vitalie S." writes: >> >>> Dear Developers, >>> >>> In current implementation of validity method, objects are first >>> coerced to superclass (slots are striped). Thus, it is not possible >>> to write validity

Re: [Rd] S4: inheritance of validity methods?

2009-08-18 Thread Vitalie S.
On Tue, 18 Aug 2009 15:42:48 +0200, Martin Morgan wrote: "Vitalie S." writes: Dear Developers, In current implementation of validity method, objects are first coerced to superclass (slots are striped). Thus, it is not possible to write validity method which would perform some checks on

Re: [Rd] Calling C functions with value parameters

2009-08-18 Thread Duncan Murdoch
On 18/08/2009 9:53 AM, Jeffrey J. Hallman wrote: replying to myself here, in lieu of replying to several others jhall...@frb.gov (Jeffrey J. Hallman) writes: One hassle I could do without is the necessity of writing C wrapper functions like this: void fameInit(int *status){ cfmini(status);

Re: [Rd] S4: inheritance of validity methods?

2009-08-18 Thread Martin Morgan
"Vitalie S." writes: > Dear Developers, > > In current implementation of validity method, objects are first > coerced to superclass (slots are striped). Thus, it is not possible > to write validity method which would perform some checks on children > slots. > > Say, I want to check if number of

Re: [Rd] Calling C functions with value parameters

2009-08-18 Thread Jeffrey J. Hallman
replying to myself here, in lieu of replying to several others jhall...@frb.gov (Jeffrey J. Hallman) writes: > One hassle I could do without is the necessity of writing C wrapper functions > like this: > > void fameInit(int *status){ > cfmini(status); > return; > } > > when I want to call a l

Re: [Rd] Calling C functions with value parameters

2009-08-18 Thread Douglas Bates
On Mon, Aug 17, 2009 at 9:23 AM, Jeffrey J. Hallman wrote: > One hassle I could do without is the necessity of writing C wrapper functions > like this: > > void fameInit(int *status){ >  cfmini(status); >  return; > } > > when I want to call a library function (cfmini, in this case) that takes an >

Re: [Rd] Calling C functions with value parameters

2009-08-18 Thread Duncan Murdoch
On 17/08/2009 10:23 AM, Jeffrey J. Hallman wrote: One hassle I could do without is the necessity of writing C wrapper functions like this: void fameInit(int *status){ cfmini(status); return; } when I want to call a library function (cfmini, in this case) that takes an int argument. The .C

Re: [Rd] S4 Generics and NAMESPACE : justified warning ?

2009-08-18 Thread Martin Morgan
Yohan Chalabi wrote: > Dear list, > > It seems that a package (pkgB) using another package (pkgA) with S4 > generics formed by taking existing functions (for example 'plot') must > not import the existing functions ('plot') in its namespace to avoid > the warning "replacing previous import: plot".

Re: [Rd] unnecessary braces?

2009-08-18 Thread Duncan Murdoch
On 17/08/2009 6:03 PM, Ben Bolker wrote: > the version 2 parser thinks I have unnecessary braces, > but I can't find any. False positive or am I missing > something? If a false positive, is there any way to > work around the warning? The problem is that % in Rd is different than % in LaTeX:

Re: [Rd] unnecessary braces?

2009-08-18 Thread Gabor Grothendieck
Just a guess but try writing it on one line without the % symbols. On Mon, Aug 17, 2009 at 6:03 PM, Ben Bolker wrote: > >  the version 2 parser thinks I have unnecessary braces, > but I can't find any.  False positive or am I missing > something?  If a false positive, is there any way to > work ar

Re: [Rd] Calling C functions with value parameters

2009-08-18 Thread Simon Urbanek
Jeff, On Aug 17, 2009, at 10:23 , Jeffrey J. Hallman wrote: One hassle I could do without is the necessity of writing C wrapper functions like this: void fameInit(int *status){ cfmini(status); return; } when I want to call a library function (cfmini, in this case) that takes an int argu

[Rd] Base "Object" class to use in S4 slot specification

2009-08-18 Thread Patrick Aboyoun
I am looking to have slot in an S4 class definition that can take any (S3 or S4) object. The ANY class seemed to be a good candidate, but the is() function definition performs an S3Case test before checking if methods:::.identC(class2, "ANY"). The result is the is() function does not consider v

[Rd] error during build: lstat64 already defined (PR#13894)

2009-08-18 Thread ktr
Full_Name: Kurt Rudahl Version: 2.8.1 OS: SuSE Linux 10.2, i586 Submission from: (NULL) (203.209.31.220) During build, it halted with several errors of general form lstat64 already defined After searches on the web, which revealed many people having similar problems in areas other then R, I

[Rd] Calling C functions with value parameters

2009-08-18 Thread Jeffrey J. Hallman
One hassle I could do without is the necessity of writing C wrapper functions like this: void fameInit(int *status){ cfmini(status); return; } when I want to call a library function (cfmini, in this case) that takes an int argument. The .C interface only lets me pass a pointer to an int, rat

[Rd] S4: inheritance of validity methods?

2009-08-18 Thread Vitalie S.
Dear Developers, In current implementation of validity method, objects are first coerced to superclass (slots are striped). Thus, it is not possible to write validity method which would perform some checks on children slots. Say, I want to check if number of slots in a class is equal to "n"

Re: [Rd] R CMD check --use-valgrind doesn't run valgrind on tests

2009-08-18 Thread Charles Geyer
On Mon, Aug 17, 2009 at 10:34:55AM +0100, Prof Brian Ripley wrote: > This was not implemented in R 2.9.x -- the comments in check.in don't > agree with the usage, and it seemed unlikely that anyone really wanted > this (it can be very slow, so perhaps a test at a time?), so this was > intentiona

[Rd] Polymorphism of predict

2009-08-18 Thread Christian Brechbühler
I can fit a line to a set of given points, e.g., > sm.fit <- smooth.spline(1:4,1:4) > lm.fit <- lm(y~x, data=list(x=1:4,y=1:4)) Now I have two objects representing the straight line y(x)=x, of class "smooth.spline" and "lm", respectively. And as could be expected in object orientation, both have

Re: [Rd] user supplied random number generators

2009-08-18 Thread Ross Boylan
On Sun, 2009-08-16 at 21:24 +0200, Petr Savicky wrote: > Dear Ross Boylan: > > Some time ago, you sent an email to R-devel with the following. > > I got into this because I'm trying to extend the rsprng code; sprng > > returns its state as a vector of bytes. Converting these to a vector of > > in

[Rd] unnecessary braces?

2009-08-18 Thread Ben Bolker
the version 2 parser thinks I have unnecessary braces, but I can't find any. False positive or am I missing something? If a false positive, is there any way to work around the warning? * checking Rd files against version 2 parser ... WARNING Warning: ./man/dbetabinom.Rd:32-34: Unnecessary bra

Re: [Rd] user supplied random number generators

2009-08-18 Thread Petr Savicky
On Mon, Aug 17, 2009 at 12:25:57PM -0700, Ross Boylan wrote: > > Seeding by a vector is also available in the initialization of Mersenne > > Twister > > from 2002. See mt19937ar.c (ar for array) at > > http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html > > Unfortunately, seeding by a vecto