Re: [Rd] Roxygen: @example tag does not work for me

2010-11-04 Thread baptiste auguie
Hi, I think you could achieve this using the brew package. Define a function that reads your external example file, and have brew insert the resulting string in your script, which can then be processed by roxygen. I'm curious to hear other suggestions, but I doubt it could work out-of-the-box

Re: [Rd] Calling C in R in Windows 64 bit

2010-11-04 Thread Prof Brian Ripley
More simply, he wants to set his paths as described in the CHANGES file and R-admin manual, to C:\Program Files\R\R-2.12.0\bin\x64 and so on. C:\Program Files\R\R-2.12.0\bin\R is only provided for some backwards compatibilty (as the CHANGES file says) and may not be retained in future

Re: [Rd] [R] Logical vectors

2010-11-04 Thread Ted Harding
On 04-Nov-10 08:56:42, Gerrit Eichner wrote: On Thu, 4 Nov 2010, Stephen Liu wrote: [snip] In; 2.4 Logical vectors http://cran.r-project.org/doc/manuals/R-intro.html#R-and-statistics It states:- The logical operators are , =, , =, == for exact equality and != for inequality

Re: [Rd] inst/ and hidden files/directories, especially inst/.svn/?

2010-11-04 Thread Uwe Ligges
On 03.11.2010 19:26, Henrik Bengtsson wrote: On Wed, Nov 3, 2010 at 9:50 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: Yes, .svn is special cased. Good. Note that it does not seem to be the case for the *.zip archive, only for the *.tar.gz archive, as I showed. Henrik, I do

Re: [Rd] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: baptiste auguie [mailto:baptiste.aug...@googlemail.com] Gesendet: Donnerstag, 4. November 2010 07:43 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Roxygen: @example tag does not work for me Hi, I think you could achieve this using

Re: [Rd] [Roxygen-devel] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: roxygen-devel-boun...@lists.r-forge.r-project.org [mailto:roxygen- devel-boun...@lists.r-forge.r-project.org] Im Auftrag von Vinh Nguyen Gesendet: Donnerstag, 4. November 2010 04:04 An: roxygen-de...@r-forge.wu-wien.ac.at Betreff: Re: [Roxygen-devel]

Re: [Rd] Using sample() to sample one value from a single value?

2010-11-04 Thread Tim Hesterberg
On Wed, Nov 3, 2010 at 3:54 PM, Henrik Bengtsson h...@biostat.ucsf.eduwrote: Hi, consider this one as an FYI, or a seed for further discussion. I am aware that many traps on sample() have been reported over the years. I know that these are also documents in help(sample). Still I got bitten

Re: [Rd] [Roxygen-devel] Roxygen: @example tag does not work for me

2010-11-04 Thread Vinh Nguyen
I didn't know @example path/to/file.R was available until you mentioned the UseR! 2010 presentation. If that's the case, I'm going to guess that you have to specify use.Rd2=TRUE in roxygenize(), as I've found most of the new features mentioned in that presentation to require it. On Thu, Nov 4,

Re: [Rd] [Roxygen-devel] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: Vinh Nguyen [mailto:vqngu...@uci.edu] Gesendet: Donnerstag, 4. November 2010 17:15 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Roxygen-devel] Roxygen: @example tag does not work for me I didn't know @example path/to/file.R was available

Re: [Rd] inst/ and hidden files/directories, especially inst/.svn/?

2010-11-04 Thread Henrik Bengtsson
2010/11/4 Uwe Ligges lig...@statistik.tu-dortmund.de: On 03.11.2010 19:26, Henrik Bengtsson wrote: On Wed, Nov 3, 2010 at 9:50 AM, Uwe Ligges lig...@statistik.tu-dortmund.de  wrote: Yes, .svn is special cased. Good. Note that it does not seem to be the case for the *.zip archive, only

Re: [Rd] Using sample() to sample one value from a single value?

2010-11-04 Thread Henrik Bengtsson
Hi. On Thu, Nov 4, 2010 at 7:42 AM, Tim Hesterberg timhesterb...@gmail.com wrote: On Wed, Nov 3, 2010 at 3:54 PM, Henrik Bengtsson h...@biostat.ucsf.eduwrote: Hi, consider this one as an FYI, or a seed for further discussion. I am aware that many traps on sample() have been reported over the

Re: [Rd] Roxygen: @example tag does not work for me

2010-11-04 Thread Hadley Wickham
I thought that @example would take the R code in tests/foo.R (this file also exists) and append it to the .Rd-file. However, there is no \examples{...} section in my roxygen-processed .Rd-file after running roxygenize(). It just seems as if @example is just neglected. Should I put the file in

Re: [Rd] Roxygen: @example tag does not work for me

2010-11-04 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: h.wick...@gmail.com [mailto:h.wick...@gmail.com] Im Auftrag von Hadley Wickham Gesendet: Donnerstag, 4. November 2010 19:00 An: Janko Thyson Cc: r-de...@r-project. org Betreff: Re: [Rd] Roxygen: @example tag does not work for me I thought that