Re: [Rd] Package Unit Testing

2006-07-03 Thread miguel manese
Thanks to both of you. I found it in some obscure paragraph (or maybe I haven't read good enough, because after reading a couple of paragraphs you'd think you got it already and skip the remaining) on chapter 1, creating packages, about directory structure and on R CMD check. Cheers, M. Manese O

Re: [Rd] noncentral F-distributed random numbers (PR#9055)

2006-07-03 Thread Thomas Lumley
On Sat, 1 Jul 2006, [EMAIL PROTECTED] wrote: > > The rf() function reads: >> rf > function (n, df1, df2, ncp = 0) > { >if (ncp == 0) >.Internal(rf(n, df1, df2)) >else rchisq(n, df1, ncp = ncp)/rchisq(n, df2) > } > > > where I believe both the numerator and the denominator should be

Re: [Rd] "Template" for model.matrix functions

2006-07-03 Thread Thomas Lumley
On Mon, 3 Jul 2006, Gregor Gorjanc wrote: > Hello! > > I would like to write a function that would create a (part) of a model > matrix to be used in lm() like functions i.e > > lm(y ~ myFunc(x)) > > Where can I find a good example or a template for this as well as for > predict method? I would lo

[Rd] Business Offer (PR#9056)

2006-07-03 Thread xaiowng
--qzsoft_directmail_seperator Content-Type: text/plain; charset="DEFAULT" Content-Transfer-Encoding: base64 RGVhciBTaXIvTWFkYW0sCiAKSSBhbSBNci5YYWlvIFdhbmcsIERpcmVjdG9yIG9mIFNoZW5nYXJk IEVudGVycHJpc2UgQ28uLCBMdGQuIFRhaXdhbi4gV2UgYXJlIGV4cG9ydGVycyBhbmQgaW1wb3J0 ZXJzIG9mIGNoZW1pY2FsIHJhdyBt

[Rd] S4 object type available for testing

2006-07-03 Thread John Chambers
The default prototype object for an S4 class up to now has been a zero-length list (nothing else worked). This is wrong in principle, because it makes the objects look like vectors to low-level C code, and they should not. It may also be the cause of some inefficiency. A new low-level type ha

Re: [Rd] plot with NAs in x and type="s" (PR#9046)

2006-07-03 Thread maechler
> "ReneL" == Rene Locher <[EMAIL PROTECTED]> > on Fri, 30 Jun 2006 15:26:18 +0200 (CEST) writes: ReneL> Full_Name: René Locher Version: Version 2.3.1 ReneL> (2006-06-01) OS: i386, mingw32 Submission from: ReneL> (NULL) (160.85.104.70) ReneL> The problem seems to occur

Re: [Rd] Installation, permissions of /usr/local/lib/R (PR#9054)

2006-07-03 Thread Jori Mantysalo
On Sun, 2 Jul 2006, Peter Dalgaard wrote: >>> make install >>> >>> and everything works except that /usr/local/lib/R/etc/ldpaths was not >>> readable >>> as normal user. > More likely, the umask setting was too restrictive during make > install. AFAIR, "umask 022" (i.e. no write permission for a

Re: [Rd] Installation, permissions of /usr/local/lib/R (PR#9054)

2006-07-03 Thread Jori . Mantysalo
On Sun, 2 Jul 2006, Peter Dalgaard wrote: >>> make install >>> >>> and everything works except that /usr/local/lib/R/etc/ldpaths was not >>> readable >>> as normal user. > More likely, the umask setting was too restrictive during make > install. AFAIR, "umask 022" (i.e. no write permission for a

Re: [Rd] Package Unit Testing

2006-07-03 Thread Martin Maechler
> "miguel" == miguel manese <[EMAIL PROTECTED]> > on Mon, 3 Jul 2006 09:43:12 +0800 writes: miguel> Hello, Do we have like an official unit testing miguel> framework for packages? Like we do R CMD check, and miguel> say the scripts in /test are executed? yes. Just it's