[Rd] ubuntu software updater clash with with cloud.r-project

2018-09-03 Thread David Shera
This seems the most appropriate place to report this. I just updated my ubuntu to 18.04.  And installed R by adding the line to /etc/apt/source.list:   deb ... cloud.r-project ... bionic-cran35/ R installed just fine. However, my ubuntu software update would not finish correctly any more.  Failed

Re: [Rd] True length - length(unclass(x)) - without having to call unclass()?

2018-09-03 Thread Tomas Kalibera
On 09/03/2018 03:59 PM, Dénes Tóth wrote: Hi Tomas, On 09/03/2018 11:49 AM, Tomas Kalibera wrote: Please don't do this to get the underlying vector length (or to achieve anything else). Setting/deleting attributes of an R object without checking the reference count violates R semantics, which

Re: [Rd] True length - length(unclass(x)) - without having to call unclass()?

2018-09-03 Thread Dénes Tóth
Hi Tomas, On 09/03/2018 11:49 AM, Tomas Kalibera wrote: Please don't do this to get the underlying vector length (or to achieve anything else). Setting/deleting attributes of an R object without checking the reference count violates R semantics, which in turn can have unpredictable results on

Re: [Rd] compairing doubles

2018-09-03 Thread Martin Maechler
> Rui Barradas > on Mon, 3 Sep 2018 09:58:34 +0100 writes: > Hello, Watch out for operator precedence. indeed! (but not only) > all.equal(0.3, 0.1*3) > #[1] TRUE > > > `%~~%` <- function (e1, e2) all.equal(e1, e2) > > 0.3 %~~% 0.1*3 > #Error in 0.3 %~~% 0.1 * 3 : argumento

Re: [Rd] Get Logical processor count correctly whether NUMA is enabled or disabled

2018-09-03 Thread Srinivasan, Arunkumar
Tomas, Luke, thank you very much once again for patching both issues swiftly. This’ll be incredibly valuable to us once we move to 3.6.0. From: Tomas Kalibera Sent: 03 September 2018 13:07 To: r-devel@r-project.org Cc: Srinivasan, Arunkumar Subject: Re: [Rd] Get Logical processor count correctl

Re: [Rd] True length - length(unclass(x)) - without having to call unclass()?

2018-09-03 Thread Radford Neal
Regarding the discussion of getting length(unclass(x)) without an unclassed version of x being created... There are already no copies done for length(unclass(x)) in pqR (current version of 2017-06-09 at pqR-project.org, as well as the soon-to-be-release new version). This is part of a more genera

Re: [Rd] Get Logical processor count correctly whether NUMA is enabled or disabled

2018-09-03 Thread Tomas Kalibera
A summary for reference: the new detectCores() for Windows in R-devel seems to be working both for logical and physical cores on systems with >64 logical processors  (thanks to Arun for testing!). If the feature is important for anyone particularly using an older version of Windows and/or on a

[Rd] Bug report: problems with saving plots on a Windows PC with 4k monitor - wrong picture size

2018-09-03 Thread Yu Lee
Steps to reproduce the problem: win.metafile("myplot.wmf",height=3,width=5) plot(1:9) dev.off() Details: When I try to save plots as WMF or EMF pictures specifying small picture size, e.g.., 3x5 inches, I get a wrong size of the WMF/EMF picture. The plot itself resides in the left upper corner

Re: [Rd] True length - length(unclass(x)) - without having to call unclass()?

2018-09-03 Thread Tomas Kalibera
Please don't do this to get the underlying vector length (or to achieve anything else). Setting/deleting attributes of an R object without checking the reference count violates R semantics, which in turn can have unpredictable results on R programs (essentially undebuggable segfaults now or mor

Re: [Rd] compairing doubles

2018-09-03 Thread Rui Barradas
Hello, Watch out for operator precedence. all.equal(0.3, 0.1*3) #[1] TRUE `%~~%` <- function (e1, e2) all.equal(e1, e2) 0.3 %~~% 0.1*3 #Error in 0.3 %~~% 0.1 * 3 : argumento não-numérico para operador binário 0.3 %~~% (0.1*3) #[1] TRUE Now with isTRUE. The problem changes a bit. isTR

Re: [Rd] compairing doubles

2018-09-03 Thread Juan Telleria Ruiz de Aguirre
Maybe a new Operator could be defined for a fast and easy double Comparison: `~~` `~~` <- function (e1, e2) all.equal(e1, e2) And document it properly. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel