RE: [R] Rd files with % (was: permuting dimensions)

2004-09-13 Thread Liaw, Andy
I suppose the source for ?%in% in base would be a good place to look: \name{match} \alias{match} \alias{\%in\%} [...] \usage{ match(x, table, nomatch = NA, incomparables = FALSE) x \%in\% table } [...] \details{ \code{\%in\%} is currently defined as \cr \code{\%in\%

Re: [R] Rd files Assignment functions.

2003-12-16 Thread Jason Turner
wolski wrote (using a mail client that doesn't wrap lines): ... Cannot handle Rd file names containing ''. These are not legal file names on all R platforms. Please rename the following files and try again: man/[[-.caliblist.Rd man/[-.massvectorlist.Rd man/[[-.massvectorlist.Rd Ok. It does

[R] Rd files Assignment functions.

2003-12-15 Thread wolski
Hi! Old story again. I put it away for a while because there are always other thinks to do. But I cant deny that I still like to like to comment assignment functions. Under linux I get. Cannot handle Rd file names containing ''. These are not legal file names on all R platforms. Please rename

RE: [R] Rd Files?

2003-12-03 Thread Philippe Grosjean
Wolski [EMAIL PROTECTED] wrotes: I have seen the output and it does not matter to me anymore if prompt or package.skeleton works on any platform. I hope it wasn't a too big heresy. If someone would ask me what are the week point of R, then the only one that pops up immediately, is that the

Re: [R] Rd Files?

2003-12-03 Thread A.J. Rossini
Philippe Grosjean [EMAIL PROTECTED] writes: Well, writing a quick and durty help for a function with a few lines of comment above or below the function code (a la Matlab) should be nice. I don't think that it should be a good idea to provide a complex alternative solution for documenting the

Re: [R] Rd Files?

2003-12-02 Thread Duncan Murdoch
On 01 Dec 2003 22:15:57 +0100, Peter Dalgaard [EMAIL PROTECTED] wrote : Just one thing to add: If Wolski gets sufficiently annoyed to actually try and do this right, he'll want a naming scheme that works on *all* platforms, so branching on sys.info()[sysname]==Windows is surely wrong. Probably

Re: [R] Rd Files?

2003-12-02 Thread Wolski
Hi! It would be great If the problem with prompt or package.skeleton would be only the file naming conventions on different platforms. For me the hack with gsub(“-”,”=”,functionname) and sys.info()[“sysname”] worked and I generated Rd files for all my functions. I have seen the output and it

Re: [R] Rd Files?

2003-12-02 Thread A.J. Rossini
Wolski [EMAIL PROTECTED] writes: I have seen the output and it does not matter to me anymore if prompt or package.skeleton works on any platform. I hope it wasn't a too big heresy. If someone would ask me what are the week point of R, then the only one that pops up immediately, is that the

[R] Rd Files?

2003-12-01 Thread Wolski
Hi! Are there scripts or packages for generating Rd files out of S3 code on cran? Has any one written such scripts (e.g. in Perl?) and are willing to share them? Thanks in advance. Eryk. Dipl. bio-chem. Eryk Witold Wolski@MPI-MG Dep. Vertebrate Genomics Ihnestrasse 73 14195 Berlin

Re: [R] Rd Files?

2003-12-01 Thread kjetil
On 1 Dec 2003 at 13:21, Wolski wrote: It is not entirely clear what you want, but if you want to translate S[-Plus] help files to Rd format, there is [windows] Rcmd Sd2Rd [unix] R cmd Sd2Rd Kjetil Halvorsen Hi! Are there scripts or packages for generating Rd files out of S3 code on cran?

Re: [R] Rd Files?

2003-12-01 Thread Wolski
Hi Kjetil! I have an *.R file with a lot of functions and I am looking for a script which would generate the skeleton of an Rd file for all functions found in the R file. It will be nice if the can already generate the name,usage and the arguments field from the source so that i have to edit

Re: [R] Rd Files?

2003-12-01 Thread Prof Brian Ripley
?prompt ?package.skeleton and do read `Writing R Extensions' On Mon, 1 Dec 2003, Wolski wrote: Hi Kjetil! I have an *.R file with a lot of functions and I am looking for a script which would generate the skeleton of an Rd file for all functions found in the R file. It will be nice if the

Re: [R] Rd Files?

2003-12-01 Thread Wolski
Hi! Seems to me that package.skeleton(...) does not like assignment functions. System: Windows 2000 package.skeleton(name=testpack,list=ls(),path=c:/home/wolski/devel,force=T) Creating directories ... Creating DESCRIPTION ... Creating READMEs ... Saving functions and data ... Error in

Re: [R] Rd Files?

2003-12-01 Thread Prof Brian D Ripley
On Mon, 1 Dec 2003, Wolski wrote: Hi! Seems to me that package.skeleton(...) does not like assignment functions. System: Windows 2000 And that's your problem! It's a problem with your OS, not package.skeleton. And it is known.

Re: [R] Rd Files?

2003-12-01 Thread Wolski
Hi! I can generate the package skeleton under unix. But i am not shure what are further consequences? Would it be still possible to rcmd install ... the package under windows? If I stay under windows how than to name the Rd files for assignement functions? Does it matter how the name of the

Re: [R] Rd Files?

2003-12-01 Thread Prof Brian Ripley
On Mon, 1 Dec 2003, Wolski wrote: Hi! I can generate the package skeleton under unix. But i am not shure what are further consequences? Would it be still possible to rcmd install ... the package under windows? If I stay under windows how than to name the Rd files for assignement

Re: [R] Rd Files?

2003-12-01 Thread Wolski
Hallo! If it does not matter how the name of the Rd file are, would it be difficult than to modify the package.skeleton function, so that it works under windows 2000 too? Eryk *** REPLY SEPARATOR *** On 12/1/2003 at 1:54 PM Prof Brian Ripley wrote: On Mon, 1 Dec 2003,

Re: [R] Rd Files?

2003-12-01 Thread Prof Brian Ripley
On Mon, 1 Dec 2003, Wolski wrote: If it does not matter how the name of the Rd file are, would it be difficult than to modify the package.skeleton function, so that it works under windows 2000 too? Why don't you try to do it and find out how difficult it is *for you*? -- Brian D. Ripley,

Re: [R] Rd Files?

2003-12-01 Thread Wolski
Hi! Thanks for suggestions. Sincerely Eryk Ps. In the attachment are prompt and package.skeleton modified so that it works on windows 2000 too. It substitutes - in file names = before writing if sys.info()[sysname]==Windows. *** REPLY SEPARATOR *** On 12/1/2003 at 2:23 PM

Re: [R] Rd Files?

2003-12-01 Thread Prof Brian Ripley
On Mon, 1 Dec 2003, Wolski wrote: In the attachment are prompt and package.skeleton modified so that it works on windows 2000 too. It substitutes - in file names = before writing if sys.info()[sysname]==Windows. However, that is nowhere near sufficient: please take a look at the Perl file

Re: [R] Rd Files?

2003-12-01 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: On Mon, 1 Dec 2003, Wolski wrote: In the attachment are prompt and package.skeleton modified so that it works on windows 2000 too. It substitutes - in file names = before writing if sys.info()[sysname]==Windows. However, that is nowhere near