Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
> You might also want to look at the Rdoc setup in the R.oo package. Hmm; Rdoc seems thorough enough. What remains to be desired? __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
> It is desirable that these tags and their syntax and semantics be > compatible with those used by Doxygen and Javadoc, but extended with > tags important for R specific things. Doxygen, in particular, has some tags that are meaningless in R (@category and @protocol come to mind); wouldn't it be

Re: [Rd] choose incorrect for fractional and some negative integer values (PR#10766)

2008-03-19 Thread Ben Bolker
biogenidec.com> writes: > > choose(-5,-7) uses integer arguments (as specified in Help) and returns a > numeric value that is incorrect. Either the function or the documentation > should be fixed. If the function is not fixed, a warning or an error > would be helpful. > > The fact that c

Re: [Rd] Roxygen

2008-03-19 Thread hadley wickham
On Wed, Mar 19, 2008 at 4:15 PM, Peter Danenberg <[EMAIL PROTECTED]> wrote: > > You should probably also survey existing attempts - I have written > > something with ruby that suggest some ideas. > > Fascinating, Hadley; do you have a link to the source, by any chance? It's completely local. I'

Re: [Rd] Roxygen

2008-03-19 Thread Manuel J. A. Eugster
Hey Peter, >> I do not see the Roclets as mini-parsers, but as small R programs >> working on the parse tree/list returned by one big parser/lexer. > > So I imagine that coming up with the intermediate parse-tree > representation would be part of the contract. Yes, sure. > What would you think

Re: [Rd] 'merge' function: behavior w.r.t. NAs in the key column

2008-03-19 Thread Bill Dunlap
On Wed, 19 Mar 2008, Prof Brian Ripley wrote: > merge() in R behaves in exactly the same way as match() (which it uses), > and not as Mr Anders claims is 'the convention'. (Note that == and match > are not the same concept, nor is 'identical'.) Splus's merge works more like x.key==y.key (or matc

Re: [Rd] Roxygen

2008-03-19 Thread Kasper Daniel Hansen
You might also want to look at the Rdoc setup in the R.oo package. While my 30 secs glance at Roxygen suggests that it is a more flexible system, Rdoc always you to keep the help inside the function source file. Kasper On Mar 19, 2008, at 8:15 AM, Peter Danenberg wrote: >> You should proba

Re: [Rd] pdf device problem (PR#10995)

2008-03-19 Thread Prof Brian Ripley
On Wed, 19 Mar 2008, [EMAIL PROTECTED] wrote: > Full_Name: Vilmos Prokaj > Version: 2.6.2 > OS: windows > Submission from: (NULL) (157.181.227.218) > > > I dont know wether my problem is specific to R or not. Using the pdf and > postscript device I realized that the spacing around some accented l

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
> I do not see the Roclets as mini-parsers, but as small R programs > working on the parse tree/list returned by one big parser/lexer. So I imagine that coming up with the intermediate parse-tree representation would be part of the contract. What would you think, by the way, of writing the parser

Re: [Rd] Error in code2LazyLoadDB

2008-03-19 Thread Tony Chiang
Thanks for the note. There was a case of cyclic dependencies . Is there a way to make the error message a bit more transparent (for those of us who are a bit slow to figure it out)? On Wed, Mar 19, 2008 at 2:40 PM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > It means that when trying to prepa

Re: [Rd] Roxygen

2008-03-19 Thread Peter Danenberg
> You should probably also survey existing attempts - I have written > something with ruby that suggest some ideas. Fascinating, Hadley; do you have a link to the source, by any chance? I imagine doing it in Scheme, Ruby or any language, for that matter, where creating DSLs is cheap; would be a j

[Rd] pdf device problem (PR#10995)

2008-03-19 Thread prokaj
Full_Name: Vilmos Prokaj Version: 2.6.2 OS: windows Submission from: (NULL) (157.181.227.218) I dont know wether my problem is specific to R or not. Using the pdf and postscript device I realized that the spacing around some accented letter letter is not correct. The same problem does not occur

[Rd] choose incorrect for fractional and some negative integer values (PR#10766)

2008-03-19 Thread jerry . lewis
choose(-5,-7) uses integer arguments (as specified in Help) and returns a numeric value that is incorrect. Either the function or the documentation should be fixed. If the function is not fixed, a warning or an error would be helpful. The fact that choose(n,k) usually returns choose(n,round(

Re: [Rd] Error in code2LazyLoadDB

2008-03-19 Thread Prof Brian Ripley
It means that when trying to prepare this "anonymous" package (ppiStats?) for lazy loading, it is already loaded. Most likely you have a dependency cycle amongst the namespaces. The ppiStats on BioC 2.2 has a very long list of dependencies, but does load under R-devel. On Wed, 19 Mar 2008, Ton

Re: [Rd] how to exclude terms preceded by - from model frame

2008-03-19 Thread Prof Brian Ripley
On Wed, 19 Mar 2008, Liaw, Andy wrote: > [I believe few users manipulate formulae and model frames like this, so > I'm posting here instead of R-help.] > > I just found out that model.frame() includes all terms, including those > preceded by "-" in the formula, in its output (as mentioned on its h

[Rd] Error in code2LazyLoadDB

2008-03-19 Thread Tony Chiang
Hi all, While the package with which I am working is apart of the Bioconductor project, I think that this might be a better forum to ask my question. I have recently updated one of my packages, and then tried to build it using R-devel, but I get the following error message: -

[Rd] how to exclude terms preceded by - from model frame

2008-03-19 Thread Liaw, Andy
[I believe few users manipulate formulae and model frames like this, so I'm posting here instead of R-help.] I just found out that model.frame() includes all terms, including those preceded by "-" in the formula, in its output (as mentioned on its help page). Is there a recommended way of excludi

Re: [Rd] 'merge' function: behavior w.r.t. NAs in the key column

2008-03-19 Thread Prof Brian Ripley
merge() in R behaves in exactly the same way as match() (which it uses), and not as Mr Anders claims is 'the convention'. (Note that == and match are not the same concept, nor is 'identical'.) This was discussed at length for match() some years ago (AFAIR when NA xharacter strings were formali

[Rd] The use of command 'file.choose' seems to make R console crash (PR#10994)

2008-03-19 Thread juryef
--0-1806400484-1205889303=:37828 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline Deat R-development team, I reported a problem with the R console closing by itself a few weeks ago, but I think I have narrowed down the proble

[Rd] ambiguous example in as.Date() documentation (PR#10990)

2008-03-19 Thread nhorton
<> The note in the as.Date() documentation is ambiguous (is it referring to February 3rd, 2001, or March 2nd, 2001?) While it is certainly true that one could peruse the ISO 8601 standard to determine which ordering is correct, changing the example day to one where the day value is >12 would res

Re: [Rd] 'merge' function: behavior w.r.t. NAs in the key column

2008-03-19 Thread Simon Anders
Hi Bill, Bill Dunlap wrote: > Splus (versions 8.0, 7.0, and 6.2) gives: >> merge( x, y, by="key" ) > key val.x val.y >1 21222 >2 31323 >3 31423 >4 31326 >5 31426 > Is that what you expect? There is no argument > to Spl

Re: [Rd] installing R packages from command line in Windows

2008-03-19 Thread Prof Brian Ripley
On Wed, 19 Mar 2008, Alberto Labarga wrote: > Hi, > > I would like to create an installer using NSIS ( > http://nsis.sourceforge.net/Main_Page) that installs R and some packages, > > I was expecting to use Rcmd.exe INSTALL package_name.zip, but it seems it > is more complicated than that, Hmm, IN

[Rd] installing R packages from command line in Windows

2008-03-19 Thread Alberto Labarga
Hi, I would like to create an installer using NSIS ( http://nsis.sourceforge.net/Main_Page) that installs R and some packages, I was expecting to use Rcmd.exe INSTALL package_name.zip, but it seems it is more complicated than that, I know I can try and build the source and create the installe