Re: [Rd] Apply .Rbuildignore before copying files in R CMD build

2024-08-28 Thread Alexey Sergushichev
. One way to detect that > would be to check if the `R_CMD` environment variable is set. For > example: > > https://gist.github.com/kevinushey/2351194ba540627831fa2d58073c097a > > For posterity, this was filed some time ago on R's bug tracker at: > > https://bugs.r-project.o

Re: [Rd] Apply .Rbuildignore before copying files in R CMD build

2024-08-28 Thread Alexey Sergushichev
x it (by increasing your temp space, or decreasing the size of some of those files, or something else). These files are not required, but help to run and test some things. But I guess I have to deal with that. -- Alexey On Wed, Aug 28, 2024 at 5:11 PM Duncan Murdoch wrote: > On 2024-08-28 5:5

[Rd] Apply .Rbuildignore before copying files in R CMD build

2024-08-28 Thread Alexey Sergushichev
Hi, Is there any reason why .Rbuildignore is not used before copying package files in R CMD build? For some of the packages I develop I have rather large directories with miscellaneous files for testing and other purposes. They are in my .Rbuildignore (and .gitignore) file, but that doesn't preve

[Rd] Incorrect behavior of ks.test and psmirnov functions with exact=TRUE

2023-03-01 Thread Alexey Sergushichev
enom) to capture 1/combination(100, 50). I don't have time to provide a fix, at least not now, but I think this behavior (good absolute error, but poor relative error for small values) should at least be mentioned in the manual of the methods psmirnov and/or ks.test Best, Alexey Sergushichev

Re: [Rd] Using unit-tests as examples

2014-01-20 Thread Alexey Sergushichev
gt; > 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 this, for example, >> only with RUnit, it'd still be

[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