[Rd] optim "CG" bug w/patch proposal (PR#8786)

2006-04-21 Thread westfeld
Dear R team, when using optim with method "CG" I got the wrong $value for the reported $par. Example: f<-function(p) { if (!all(p>-.7)) return(2) if (!all(p<.7)) return(2) sin((p[1])^2)*sin(p[2]) } optim(c(0.1,-0.1),f,method="CG",control=list(trace=0,type=1)) $par 19280.68

[Rd] Questions on version arg to setClass and serialized instances

2006-04-21 Thread Seth Falcon
I have a few questions and thoughts regarding class versioning and serialized S4 class instances. How is the version argument to setClass is intended to work? It appears to want an externalptr, but that seems odd to me. setClass("FOO", representation(x="numeric"), version="1.2.3") Error

Re: [Rd] R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))

2006-04-21 Thread Duncan Temple Lang
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Gentleman wrote: > > ... > As for the difference between source packages and built packages, yes > it would be nice at some time to enter into a discussion on that topic. > There are lots of things that can be done at build time (

Re: [Rd] R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))

2006-04-21 Thread Robert Gentleman
Kurt Hornik wrote: >>Simon Urbanek writes: > > >>On Apr 20, 2006, at 1:23 PM, Henrik Bengtsson (max 7Mb) wrote: >> >>>Is it a general consensus on R-devel that *.tar.gz distributions >>>should only be treated as a distribution for *building* packages >>>and not for developing them? > >

Re: [Rd] R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))

2006-04-21 Thread Thomas Lumley
On Fri, 21 Apr 2006, Kurt Hornik wrote: >> Simon Urbanek writes: > >> On Apr 20, 2006, at 1:23 PM, Henrik Bengtsson (max 7Mb) wrote: >>> Is it a general consensus on R-devel that *.tar.gz distributions >>> should only be treated as a distribution for *building* packages >>> and not for develop

Re: [Rd] R_PAPERSIZE and LC_PAPER

2006-04-21 Thread Hin-Tak Leung
Marc Schwartz wrote: > On Thu, 2006-04-20 at 20:56 +0100, Prof Brian Ripley wrote: >> gannet% locale -ck LC_PAPER >> LC_PAPER >> height=297 >> width=210 >> paper-codeset="ISO-8859-1" > BTW, on my FC4 system: > > $ locale -ck LC_PAPER > LC_PAPER > height=279 > width=216 > paper-codeset="UTF-8" 2

Re: [Rd] R_PAPERSIZE and LC_PAPER

2006-04-21 Thread Prof Brian Ripley
On Fri, 21 Apr 2006, Hin-Tak Leung wrote: > Prof Brian Ripley wrote: > >> It does not exist in any system at present (not even mine): just an idea in >> my head to represent the default found at configure time. >> >> In some sense LC_PAPER is set on FC3: >> >> gannet% locale -ck LC_PAPER >> LC

Re: [Rd] R_PAPERSIZE and LC_PAPER

2006-04-21 Thread Hin-Tak Leung
Prof Brian Ripley wrote: > It does not exist in any system at present (not even mine): just an idea > in my head to represent the default found at configure time. > > In some sense LC_PAPER is set on FC3: > > gannet% locale -ck LC_PAPER > LC_PAPER > height=297 > width=210 > paper-codeset="ISO-8

Re: [Rd] plot.default 'ylim' error message is wrong (PR#8784)

2006-04-21 Thread Prof Brian Ripley
On Fri, 21 Apr 2006, [EMAIL PROTECTED] wrote: Full_Name: Lutz Prechelt Version: 2.2.1 OS: WinXP SP2 Submission from: (NULL) (130.133.8.114) This command plot(0, 0, xlim=c(3, 5), ylim=c(0, 10, 17)) should complain about 'ylim' (because it has three elements). However, it does in fact (in my

[Rd] plot.default 'ylim' error message is wrong (PR#8784)

2006-04-21 Thread prechelt
Full_Name: Lutz Prechelt Version: 2.2.1 OS: WinXP SP2 Submission from: (NULL) (130.133.8.114) This command plot(0, 0, xlim=c(3, 5), ylim=c(0, 10, 17)) should complain about 'ylim' (because it has three elements). However, it does in fact (in my german error message at least) complain about 'x

Re: [Rd] R CMD check: non source files in src on (2.3.0 RC (2006-04-19 r37860))

2006-04-21 Thread Kurt Hornik
> Simon Urbanek writes: > On Apr 20, 2006, at 1:23 PM, Henrik Bengtsson (max 7Mb) wrote: >> Is it a general consensus on R-devel that *.tar.gz distributions >> should only be treated as a distribution for *building* packages >> and not for developing them? [Actually, distributing so that