[Rd] Error when making R in Windows

2014-01-18 Thread 赵自强
Hi all, I¡¯m trying to build R (32-bit) under Windows 7 (64-bit). To do so, I just use ¡±make all recommended¡± as mentioned in the documents and it does work for R 2.15.2. However, for R 3.0.2, I get the following error message, gcc -shared -s -sta

Re: [Rd] Error when making R in Windows

2014-01-18 Thread Prof Brian Ripley
The issue is that your version of Windows is not properly changing to a C locale. The solution is to start the build in an 8-bit (preferably C) locale. This is documented in R-patched at least: see the posting guide (which asked you to try R-patched before posting) and http://cran.r-project.

[Rd] Using unit-tests as examples

2014-01-18 Thread Alexey Sergushichev
Hi, Which is the best way to use unit tests as examples for documentation? I use testthat, but if there is a good way to do this, for example, only with RUnit, it'd still be good to know. Unit-tests are usually simple and concise, so they are good candidates for example code, but I don't want to

[Rd] My first package

2014-01-18 Thread Axel Urbiz
Hi All, I'm planning to submit my first package to R, and although I read all the documentation, I'm not very clear on the following 2 items, from which I'd appreciate your guidance: 1)I understand it is suggested to use the R dev version to build the package. Which one specifically should I us

Re: [Rd] My first package

2014-01-18 Thread Simon Urbanek
On Jan 18, 2014, at 9:31 AM, Axel Urbiz wrote: > Hi All, > > > I'm planning to submit my first package to R, and although I read all the > documentation, I'm not very clear on the following 2 items, from which I'd > appreciate your guidance: > > > 1)I understand it is suggested to use the R

Re: [Rd] [R-SIG-Mac] My first package

2014-01-18 Thread Prof Brian Ripley
On 18/01/2014 15:25, Simon Urbanek wrote: On Jan 18, 2014, at 9:31 AM, Axel Urbiz wrote: Hi All, I'm planning to submit my first package to R, and although I read all the To CRAN, not 'to R', I guess. documentation, I'm not very clear on the following 2 items, from which I'd appreciate

Re: [Rd] Using unit-tests as examples

2014-01-18 Thread Hadley Wickham
If you're using roxygen2, you can use @example tag to include an external file into the examples. Hadley On Sat, Jan 18, 2014 at 7:18 AM, Alexey Sergushichev wrote: > Hi, > > Which is the best way to use unit tests as examples for documentation? > I use testthat, but if there is a good way to do

Re: [Rd] rexp, different results on 32/64 bit

2014-01-18 Thread Prof Brian Ripley
On 17/01/2014 18:58, Gábor Csárdi wrote: Hi all, I just run into this today. Apparently rexp() sometimes gives different slightly results for the same seed on 32 bit and 64 bit machines. runif() is the same for both, so the problem seems to be in rexp(). Rather, the 'problem' is in your expect