[Rd] Fix documentation about <- and = differences

2025-01-04 Thread Philip Rogers
Hello R devs, this StackOverflow answer says that the R documentation is wrong: https://stackoverflow.com/a/51564252/1719931 Can we fi it? Best, ​ [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.c

Re: [Rd] Bias in R's random integers?

2018-09-20 Thread Philip B. Stark
The same issue occurs in walker_ProbSampleReplace() in random.c, lines 386-387: rU = unif_rand() * n; k = (int) rU; Cheers, Philip On Wed, Sep 19, 2018 at 3:08 PM Duncan Murdoch wrote: > On 19/09/2018 5:57 PM, David Hugh-Jones wrote: > > > > It doesn't seem too hard to co

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread Philip B. Stark
brate permutation tests. If I'm trying to simulate the probability of a low-probability event, this could matter a lot. Best wishes, Philip On Wed, Sep 19, 2018 at 12:52 PM Philip B. Stark wrote: > Hi Duncan-- > > Nice simulation! > > The absolute difference in probabilities

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread Philip B. Stark
extra step to use something like sample(..., legacy=TRUE) if I want to reproduce old results. Regards, Philip On Wed, Sep 19, 2018 at 9:50 AM Duncan Murdoch wrote: > On 19/09/2018 12:23 PM, Philip B. Stark wrote: > > No, the 2nd call only happens when m > 2**31. Here's the code:

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread Philip B. Stark
break; } double u = dn > cut ? ru() : unif_rand(); return floor(dn * u); } On Wed, Sep 19, 2018 at 9:20 AM Duncan Murdoch wrote: > On 19/09/2018 12:09 PM, Philip B. Stark wrote: > > The 53 bits only encode at most 2^{32} possible values, because the > > source of th

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread Philip B. Stark
r a reason. Regards, Philip On Wed, Sep 19, 2018 at 9:05 AM Duncan Murdoch wrote: > On 19/09/2018 9:09 AM, Iñaki Ucar wrote: > > El mié., 19 sept. 2018 a las 14:43, Duncan Murdoch > > () escribió: > >> > >> On 18/09/2018 5:46 PM, Carl Boettiger wrote: > >>&g

Re: [Rd] Bias in R's random integers?

2018-09-19 Thread Philip B. Stark
rror, but for almost all > simulations, it will be negligible compared to the Monte Carlo error. I > suspect the only simulations where the bias was anywhere near the same > order of magnitude as the Monte Carlo error would be ones designed with > this specific code in mind. >

[Rd] rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created

2017-04-02 Thread Philip Rinn
someone enlighten me by pointing me to some docs or by briefly describing the path? Any help/comments are very welcome. Best, Philip PS: could you CC me, I'm not on the list. Thanks. [1] at least in /R/.rdb and /help/.rdb [2] at least in /help/paths.rds [3] https://reproducible-bu

[Rd] Exporting a method to a cluster object

2015-11-17 Thread Philip Leifeld
ot;summary.statistics") test3 <- parSapply(cl, l, fun) # error! ## I found a solution somewhere in a forum: clusterCall(cl, function() library("ergm")) However, as I'd like to use the code in a package, the CRAN check tells me that using library calls in

[Rd] Package integrity check via SHA256 or OpenPGP possible?

2015-10-15 Thread Philip Gillißen
stion is: Is is possible to force R to verify integrity via SHA256 or even OpenPGP signatures? If not are there any plans to support better hashes than MD5? As the source code looks, an extension to support other (optional) hash values would be quite easy. Thanks in advance! Kind regards, Philip

Re: [Rd] R 2.15.2 still missing two files useful with the X11 icon patch

2012-10-26 Thread Philip Johnson
help only freedesktop.org-compliant systems -- although I can't imagine how they would hurt any other system. Thanks for incorporating at least the first patch into main line development! Regards, Philip On 10/26/2012 10:07 AM, Dirk Eddelbuettel wrote: Congrats on getting 2.15.2 out on schedule

Re: [Rd] x11 icon and class

2012-06-14 Thread Philip Johnson
On 06/12/2012 03:50 PM, Davor Cubranic wrote: On 2012-06-07, at 12:05 PM, Philip Johnson wrote: The X11 device driver does not provide the X window manager with an icon (_NET_WM_ICON) or, under some circumstances, with a class (WM_CLASS). This hinders usability under the new stable version

[Rd] x11 icon and class

2012-06-07 Thread Philip Johnson
Regards, Philip diff -Naur R-devel/src/modules/X11/devX11.c R-devel-patched/src/modules/X11/devX11.c --- R-devel/src/modules/X11/devX11.c 2012-05-28 20:53:33.0 -0400 +++ R-devel-patched/src/modules/X11/devX11.c 2012-06-07 14:48:40.359041743 -0400 @@ -70,6 +70,7 @@ typedef int (*X1

[Rd] axis, title & padj

2011-03-03 Thread Philip Johnson
patch to fix this? Regards, Philip __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] format scientific + plotmath potential bug

2011-01-18 Thread Philip Johnson
install of Ubuntu / Maverick. Thanks, Philip __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Sharing variables in seperate workspace

2009-04-21 Thread Philip
Hi Martin Thank you very much. That solved my problem, and the package is now working! Best regards. Philip. Martin Morgan wrote: > Philip writes: > >> Hi all. > > Hi Philip -- I think this thread > > https://stat.ethz.ch/pipermail/r-devel/2009-March/052867.html &

[Rd] Sharing variables in seperate workspace

2009-04-20 Thread Philip
ectly accessible from the global workspace (without change of environment) via a hereto dedicated function. It only consists of R code. I'm not sure if I should rather ask R-help. If so, just tell me. The package source is available at http://www.delff.dk/~philip/bdplot/ the check outp

Re: [Rd] Dates in C api

2008-09-23 Thread Lee, Philip (IT)
TED] > Sent: Wednesday, September 17, 2008 4:19 PM > To: Lee, Philip (IT) > Cc: r-devel@r-project.org > Subject: Re: [Rd] Dates in C api > > If you are looking for examples of handling dates/times (specifically > POSIXct) within C code, the dev branch of xts has quite a bit of c

Re: [Rd] Dates in C api

2008-09-17 Thread Lee, Philip (IT)
Thanks, everyone, for the responses. That's exactly what I was after. Regards, Phil > -Original Message- > From: Jeff Ryan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2008 4:19 PM > To: Lee, Philip (IT) > Cc: r-devel@r-project.org > Subject:

[Rd] Dates in C api

2008-09-17 Thread Lee, Philip (IT)
ype is that of a real. There doesn't seem to be a date type in Rinternals.h, is there a way to recognize that a value is a date rather than a real? Equally, does anyone know if it's possible to create date values in the C api? Thanks, Phil Lee Philip Lee Morgan Stanley | Technology 7