Displaying 20 results from an estimated 2000 matches similar to: "R CMD check for the R code from vignettes -- thread fraying?"
2023 Jun 29
1
Correct use of tools::R_user_dir() in packages?
On Thu, 29 Jun 2023 at 01:34, Carl Boettiger <cboettig at gmail.com> wrote:
>
> Thanks Simon, I was very much hoping that would be the case! It may
> be that I just need to put the version requirement on 4.0 then. I
> will be sure to add this version restriction to my packages (which
> technically I should be doing anyway since this function didn't exist
> in early
2023 Jun 28
1
Correct use of tools::R_user_dir() in packages?
Thanks Simon, I was very much hoping that would be the case! It may
be that I just need to put the version requirement on 4.0 then. I
will be sure to add this version restriction to my packages (which
technically I should be doing anyway since this function didn't exist
in early versions of `tools`.)
Cheers,
Carl
---
Carl Boettiger
http://carlboettiger.info/
On Wed, Jun 28, 2023 at
2023 Jun 27
2
Correct use of tools::R_user_dir() in packages?
tools::R_user_dir() provides configurable directories for R packages
to write persistent information consistent with standard best
practices relative to each supported operating systems for
applications to store data, config, and cache information
respectively. These standard best practices include writing to
directories in the users home filespace, which is also specifically
against CRAN policy.
2018 Aug 26
0
Where does L come from?
As long as we're on this point about not many users knowing about "L"
notation, I'm going bump my earlier suggestion that it be at least
mentioned in the `? integer` documentation page:
https://stat.ethz.ch/pipermail/r-devel/2018-May/076203.html
Cheers,
-Thomas
> From: Duncan Murdoch <murdoch.duncan at gmail.com>
> To: =?UTF-8?B?SGVydsOpIFBhZ8Oocw==?= <hpages at
2018 Aug 25
3
Where does L come from?
On 25 August 2018 at 09:28, Carl Boettiger wrote:
| I always thought it meant "Long" (I'm assuming R's integers are long
| integers in C sense (iirrc one can declare 'long x', and it being common to
| refer to integers as "longs" in the same way we use "doubles" to mean
| double precision floating point). But pure speculation on my part, so I'm
|
2014 Apr 22
1
Segfaults on Ubuntu 14.04
Hi list,
I've just upgraded my Ubuntu system to 14.04 / Trusty Tahr. I now find that
when I launch the "R" software environment, I immediately get a
segmentation fault with no further warning or error message.
I tried removing the relevant base package, which seemed to successfully
remove R entirely from my system:
sudo aptitude remove --purge r-base-core
I then simply
2018 Aug 25
4
Where does L come from?
On 25/08/2018 4:49 PM, Herv? Pag?s wrote:
> The choice of the L suffix in R to mean "R integer type", which
> is mapped to the "int" type at the C level, and NOT to the "long int"
> type, is really unfortunate as it seems to be misleading and confusing
> a lot of people.
Can you provide any evidence of that (e.g. a link to a message from one
of these
2018 Sep 19
2
Bias in R's random integers?
El mi?., 19 sept. 2018 a las 14:43, Duncan Murdoch
(<murdoch.duncan at gmail.com>) escribi?:
>
> On 18/09/2018 5:46 PM, Carl Boettiger wrote:
> > Dear list,
> >
> > It looks to me that R samples random integers using an intuitive but biased
> > algorithm by going from a random number on [0,1) from the PRNG to a random
> > integer, e.g.
> >
2018 Aug 25
1
Where does L come from?
On 25 August 2018 at 13:49, Herv? Pag?s wrote:
| The choice of the L suffix in R to mean "R integer type", which
| is mapped to the "int" type at the C level, and NOT to the "long int"
| type, is really unfortunate as it seems to be misleading and confusing
| a lot of people.
The point I was trying to make in what you quote below is that the L may come
from a time
2018 Sep 20
5
Bias in R's random integers?
On 9/20/18 1:43 AM, Carl Boettiger wrote:
> For a well-tested C algorithm, based on my reading of Lemire, the unbiased
> "algorithm 3" in https://arxiv.org/abs/1805.10941 is part already of the C
> standard library in OpenBSD and macOS (as arc4random_uniform), and in the
> GNU standard library. Lemire also provides C++ code in the appendix of his
> piece for both this and
2018 Sep 19
2
Bias in R's random integers?
The 53 bits only encode at most 2^{32} possible values, because the source
of the float is the output of a 32-bit PRNG (the obsolete version of MT).
53 bits isn't the relevant number here.
The selection ratios can get close to 2. Computer scientists don't do it
the way R does, for a reason.
Regards,
Philip
On Wed, Sep 19, 2018 at 9:05 AM Duncan Murdoch <murdoch.duncan at
2018 Sep 20
4
Bias in R's random integers?
Hello,
On Thursday, September 20, 2018 11:15:04 AM EDT Duncan Murdoch wrote:
> On 20/09/2018 6:59 AM, Ralf Stubner wrote:
> > On 9/20/18 1:43 AM, Carl Boettiger wrote:
> >> For a well-tested C algorithm, based on my reading of Lemire, the
> >> unbiased "algorithm 3" in https://arxiv.org/abs/1805.10941 is part
> >> already of the C standard library in
2015 Oct 28
2
r-cran-rjags installation problems?
Hi list,
>From a vanilla debian:testing machine (e.g. docker run -ti debian:testing
bash) I install `r-cran-rjags`, which appears to install fine. However,
attempting to actually load the library in R produces the following error:
library(rjags) Loading required package: coda Error : .onLoad failed in
loadNamespace() for 'rjags', details: call: dyn.load(file, DLLpath =
DLLpath,
2018 Sep 19
2
Bias in R's random integers?
No, the 2nd call only happens when m > 2**31. Here's the code:
(RNG.c, lines 793ff)
double R_unif_index(double dn)
{
double cut = INT_MAX;
switch(RNG_kind) {
case KNUTH_TAOCP:
case USER_UNIF:
case KNUTH_TAOCP2:
cut = 33554431.0; /* 2^25 - 1 */
break;
default:
break;
}
double u = dn > cut ? ru() : unif_rand();
return floor(dn * u);
}
On Wed, Sep
2014 May 30
1
R CMD check for the R code from vignettes
Hi,
Recently I saw a couple of cases in which the package vignettes were
somewhat complicated so that Stangle() (or knitr::purl() or other
tangling functions) can fail to produce the exact R code that is
executed by the weaving function Sweave() (or knitr::knit(), ...). For
example, this is a valid document that can pass the weaving process
but cannot generate a valid R script to be source()d:
2013 Jul 17
1
SweaveParseOptions, quoted commas, and knitr vignettes
I haven't figured it out entirely, but it looks like there are a
couple of small glitches with knitr-based vignettes and
SweaveParseOptions.
I posted the tarball of a package with a knitr vignette with (as far
as I can tell) everything properly coded in the DESCRIPTION file
(VignetteBuilder: knitr, Suggests: knitr) and the vignette itself
(%\VignetteEngine{knitr::knitr}). When Windows
2018 Sep 18
3
Bias in R's random integers?
Dear list,
It looks to me that R samples random integers using an intuitive but biased
algorithm by going from a random number on [0,1) from the PRNG to a random
integer, e.g.
https://github.com/wch/r-source/blob/tags/R-3-5-1/src/main/RNG.c#L808
Many other languages use various rejection sampling approaches which
provide an unbiased method for sampling, such as in Go, python, and others
2011 Nov 07
3
CRAN: How to list a non-Sweave doc under "Vignettes:" on package page?
Hi,
is it possible to have non-Sweave vignettes(*) in inst/doc/ be listed
under 'Downloads' on CRAN package pages? For instance, in my R.rsp
package I have a inst/doc/report.pdf (part of the source *.tar.gz)
that is not detected/listed. The PDF is not based on a Sweave
vignette but an *.tex.rsp vignette that is dynamically created via
inst/doc/Makefile. It is listed
(*) BTW, can the
2015 May 26
4
MetaCran website v1.0.0-alpha
On Tue, May 26, 2015 at 12:18 PM, Gabriel Becker <gmbecker at ucdavis.edu> wrote:
> On Tue, May 26, 2015 at 9:25 AM, Yihui Xie <xie at yihui.name> wrote:
>
>> I cannot speak for other package authors, but for all my own packages,
>> I have provided the BugReports field in DESCRIPTION that points to the
>> Github issues page. You can probably use this field to
2018 Sep 19
2
Bias in R's random integers?
A quick point of order here: arguing with Duncan in this forum is
helpful to expose ideas, but probably neither side will convince the
other; eventually, if you want this adopted in core R, you'll need to
convince an R-core member to pursue this fix.
In the meantime, a good, well-tested implementation in a
user-contributed package (presumably written in C for speed) would be
enormously