Re: [Rd] speedbump in library

2015-01-26 Thread Martin Maechler
) a slightly more suggestive function name may be isLoadedNamespace(name) or using Luke's original language, still present in the C code, isRegisteredNamespace(name) but I would prefer the former, isLoadedN..S..() Martin On Mon, Jan 26, 2015 at 3:36 AM, Martin Maechler maech

Re: [Rd] speedbump in library

2015-01-26 Thread Martin Maechler
On Mon, Jan 26, 2015 at 5:51 AM, Martin Maechler maech...@lynne.stat.math.ethz.ch wrote: Michael Lawrence lawrence.mich...@gene.com on Mon, 26 Jan 2015 05:12:55 -0800 writes: A isNamespaceLoaded() function would be a useful thing to have

Re: [Rd] Proper way to define cbind, rbind for s4 classes in package

2015-02-02 Thread Martin Maechler
. 1 . . On Mon, Jan 26, 2015 at 3:55 AM, Martin Maechler maech...@lynne.stat.math.ethz.ch wrote: Michael Lawrence lawrence.mich...@gene.com on Sat, 24 Jan 2015 06:39:37 -0800 writes: On Sat, Jan 24, 2015 at 12:58 AM, Mario Annau

Re: [Rd] default min-v/nsize parameters

2015-01-20 Thread Martin Maechler
to the beginning -- at least the R-devel version now shows R --help | grep -e min-.size --min-nsize=N Set min number of fixed size obj's (cons cells) to N --min-vsize=N Set vector heap minimum to N bytes; '4M' = 4 MegaB -- Martin Maechler, ETH Zurich On Sat, Jan 17, 2015 at 11

Re: [Rd] [PATCH] Makefile: add support for git svn clones

2015-01-20 Thread Martin Maechler
Dirk Eddelbuettel e...@debian.org on Mon, 19 Jan 2015 16:35:31 -0600 writes: On 19 January 2015 at 17:11, Duncan Murdoch wrote: | The people who would have to maintain the patch can't test it. I agree that this is good reason to not add delicate code to the R sources, indeed,

Re: [Rd] Link to NEWS.2 in NEWS is broken

2015-01-20 Thread Martin Maechler
Tal Galili tal.gal...@gmail.com on Tue, 20 Jan 2015 00:30:56 +0200 writes: I am not sure where to post this. Maybe you could try to contact the CRAN maintainer by e-mail. (E-mail: you know the thing people did before they posted everything :-) ;-)) but I agree that it is not easy to

Re: [Rd] Proper way to define cbind, rbind for s4 classes in package

2015-02-20 Thread Martin Maechler
. Small changes in some outputs may occur, notably as the hidden methods:::cbind and rbind functions (think of S4 default method) now do obey deparse.level and also otherwise should create row and column names in the same way as base::[cr]bind(). Martin Maechler ETH Zurich and R Core Team br

Re: [Rd] names function for environments?

2015-01-27 Thread Martin Maechler
and waiting for other comments, not the least from other members of R core .. Martin Maechler, ETH Zurich I have submitted a patch and some timings to the bug tracker as https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16170 Regards, Pete

Re: [Rd] Inspect a delayed assigned whose value throws an error?

2015-01-27 Thread Martin Maechler
Henrik Bengtsson h...@biostat.ucsf.edu on Mon, 26 Jan 2015 12:41:48 -0800 writes: On Mon, Jan 26, 2015 at 12:24 PM, Hadley Wickham h.wick...@gmail.com wrote: If it was any other environment than the global, you could use substitute: e - new.env()

Re: [Rd] [PATCH v2] Makefile: add support for git svn clones

2015-01-28 Thread Martin Maechler
(below) and test this... and if it does not work, try to fix it for your platform and send patches and/or further contact Felipe so he can do so. Martin Maechler, ETH Zurich Signed-off-by: Felipe Balbi ba...@kernel.org --- Due to lack of a Windows system, this has only been tested

Re: [Rd] speedbump in library

2015-01-26 Thread Martin Maechler
() ? Thank you, again, Winston; you've opened an interesting topic! -- Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Proper way to define cbind, rbind for s4 classes in package

2015-01-26 Thread Martin Maechler
Michael Lawrence lawrence.mich...@gene.com on Sat, 24 Jan 2015 06:39:37 -0800 writes: On Sat, Jan 24, 2015 at 12:58 AM, Mario Annau mario.an...@gmail.com wrote: Hi all, this question has already been posted on stackoverflow, however without success, see also

Re: [Rd] RFC: getifexists() {was [Bug 16065] exists ...}

2015-01-09 Thread Martin Maechler
Martin Maechler maech...@stat.math.ethz.ch on Fri, 9 Jan 2015 14:00:38 +0100 writes: Michael Lawrence lawrence.mich...@gene.com on Thu, 8 Jan 2015 14:02:26 -0800 writes: On Thu, Jan 8, 2015 at 11:57 AM, luke-tier...@uiowa.edu wrote: On Thu, 8 Jan 2015, Michael Lawrence

Re: [Rd] RFC: getifexists() {was [Bug 16065] exists ...}

2015-01-09 Thread Martin Maechler
Michael Lawrence lawrence.mich...@gene.com on Thu, 8 Jan 2015 14:02:26 -0800 writes: On Thu, Jan 8, 2015 at 11:57 AM, luke-tier...@uiowa.edu wrote: On Thu, 8 Jan 2015, Michael Lawrence wrote: If we do add an argument to get(), then it should be named consistently

Re: [Rd] latex warning

2015-01-09 Thread Martin Maechler
Gábor Csárdi csardi.ga...@gmail.com on Thu, 8 Jan 2015 17:18:27 -0500 writes: Dear all, I am getting an R CMD check warning about the PDF manual. I am having a hard time finding out what is wrong, here is the log of the Rd2pdf call. The full check (and other) log is at

Re: [Rd] Imports problem

2015-02-16 Thread Martin Maechler
in coxme (the rats data set in survival now has both male and female, prompted by a user, but the test assumed the old version with only female). An update of the include vs update material seemed in order as well. ??? {nix verstahn we'd say here} Terry Therneau Martin

[Rd] RFC: getifexists() {was [Bug 16065] exists ...}

2015-01-08 Thread Martin Maechler
faster version of exists(), and I commented --- Comment #2 from Martin Maechler maech...@stat.math.ethz.ch --- I'm very grateful that you've started exploring the bottlenecks of loading packages with many S4 classes (and methods)... and I hope we can make real progress

Re: [Rd] On base::rank

2015-01-08 Thread Martin Maechler
-25. Note that the R source code is at http://svn.r-project.org/R/ and the file in question at http://svn.r-project.org/R/trunk/src/library/base/R/rank.R where you can already see the new code (given that 'x' was no longer needed, there's no need for 'xx'). Martin Maechler, ETH Zurich

Re: [Rd] RFC: getifexists() {was [Bug 16065] exists ...}

2015-01-08 Thread Martin Maechler
Maechler maech...@stat.math.ethz.ch, R-devel@r-project.org From: Duncan Murdoch Sent by: R-devel Date: 01/08/2015 06:39AM Subject: Re: [Rd] RFC: getifexists() {was [Bug 16065] exists ...} On 08/01/2015 4:16 AM, Martin Maechler wrote: In November, we had a bug repository conversation

[Rd] RFC: Matrix package: Matrix products (%*%, crossprod, tcrossprod) involving nsparseMatrix aka sparse pattern matrices

2015-03-19 Thread Martin Maechler
, Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] RFC: Matrix package: Matrix products (%*%, crossprod, tcrossprod) involving nsparseMatrix aka sparse pattern matrices

2015-03-20 Thread Martin Maechler
already! (I checked a version from 2008) Thanks a lot, Michael, for your valuable feedback. Martin MH Thanks, MH -Michael MH On 03/19/2015 05:02 PM, Martin Maechler wrote: This is a Request For Comment, also BCCed to 390 package maintainers of reverse dependencies of the Matrix

Re: [Rd] Seed in 'parallel' vignette

2015-03-10 Thread Martin Maechler
Marius Hofert marius.hof...@uwaterloo.ca on Sun, 8 Mar 2015 11:19:45 -0400 writes: On Tue, Feb 3, 2015 at 10:39 AM, Marius Hofert marius.hof...@uwaterloo.ca wrote: Hi, This is most likely only a minor technicality, but I saw the following: On page 6 of the

Re: [Rd] R-devel does not update the C++ returned variables

2015-03-03 Thread Martin Maechler
Hervé Pagès hpa...@fredhutch.org on Mon, 2 Mar 2015 13:00:47 -0800 writes: Hi, On 03/02/2015 12:18 PM, Dénes Tóth wrote: On 03/02/2015 04:37 PM, Martin Maechler wrote: On 2 March 2015 at 09:09, Duncan Murdoch wrote: | I generally recommend

Re: [Rd] R-devel does not update the C++ returned variables

2015-03-02 Thread Martin Maechler
that 'i * 2' is significantly faster than both 'i * 2L' and also 'i + i' which I find astonishing, given that i is integer here... Probably no reason for deep thoughts here, but if someone is enticed, this maybe slightly interesting to read. Martin Maechler, ETH Zurich

Re: [Rd] [R] Why does R replace all row values with NAs

2015-03-03 Thread Martin Maechler
R versions such as your 'is.true', called 'is1' inside Matrix maybe optimizable a bit by the byte compiler (and jit and other such tricks) and still keep the full semantic including correct method dispatch. Martin Maechler, ETH Zurich On Fri, Feb 27, 2015 at 7:27 AM, Dimitri Liakhovitski

Re: [Rd] iterated lapply

2015-02-26 Thread Martin Maechler
, and in our CRAN package 'simsalapar' we that useRs should organize computations such that using lapply serially is used for preliminary testing and mclapply() etc are used for the heavy weight computations. Best, Martin Maechler / On Feb 24, 2015, at 10:50 AM, luke-tierney at uiowa.edu https

Re: [Rd] behavior of as.integer(5000000000)

2015-04-14 Thread Martin Maechler
Hi, as.integer(50) [1] 2147483647 Warning message: inaccurate integer conversion in coercion as.integer(-50) [1] NA Warning message: inaccurate integer conversion in coercion Is this a bug or a feature? The man page suggests it's the latter:

[Rd] Development version of R: Improved nchar(), nzchar() but changed API

2015-04-24 Thread Martin Maechler
see problems with R-devel (that you don't see with R 3.2.0), but you should become aware of the slightly changed semantics of nchar() and nzchar(). Longer term, the change should have made R more internally coherent, namely vectorized R functions preserving NA's by default. Martin Maechler, ETH

Re: [Rd] Bug 15899 - Omitted 'extern' on 'R_running_as_main_program' after refactor can cause linker errors for applications embedding R

2015-04-22 Thread Martin Maechler
, issues with it. Thank you for the reminder. Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] --interactive and -f/-e

2015-04-29 Thread Martin Maechler
above is clearly not enough. Martin Maechler ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R CMD check and missing imports from base packages

2015-04-30 Thread Martin Maechler
(?) (*) IIUC, you suggested to use standard packages := packages which are attached by default in R, apart from package 'base' because that does come immediately after the imports anyway (and because you cannot explicity import from base). Martin Maechler ETH Zurich

Re: [Rd] Development version of R: Improved nchar(), nzchar() but changed API

2015-04-27 Thread Martin Maechler
Mark van der Loo mark.vander...@gmail.com on Mon, 27 Apr 2015 10:26:32 +0200 writes: Dear Martin, Does the work on nchar mean that bugs #16090 and #16091 will be resolved [1,2]? Thanks, Mark [1] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16090 [2]

Re: [Rd] dimnames returned by function apply

2015-04-30 Thread Martin Maechler
Martin Maechler maech...@lynne.stat.math.ethz.ch on Thu, 30 Apr 2015 18:23:58 +0200 writes: Fischer, Bernd b.fisc...@dkfz-heidelberg.de on Wed, 29 Apr 2015 20:22:44 +0200 writes: Dear all, I noticed that the dimnames returned by apply are different in the new release

Re: [Rd] dimnames returned by function apply

2015-04-30 Thread Martin Maechler
Thank you, Bernd, for the report! Martin Maechler, ETH Zurich X = array(1:8, dim=c(4,2)) dimnames(X) = list(c(A,B,C,D),c(S,T)) apply(X, 1, function(x) { c(X=x[1]*5,Y=x[2]*5) } ) A B C D S 5 10 15 20 T 25 30 35 40 sessionInfo() R version 3.2.0 (2015

Re: [Rd] Shouldn't vector indexing with negative out-of-range index give an error?

2015-05-06 Thread Martin Maechler
John, for the perspective and clarification! I'm committing a patch to the documentation now. Martin On May 5, 2015, at 7:01 AM, Martin Maechler maech...@lynne.stat.math.ethz.ch wrote: Henrik Bengtsson henrik.bengts...@ucsf.edu on Mon, 4 May 2015 12:20:44 -0700 writes

Re: [Rd] Shouldn't vector indexing with negative out-of-range index give an error?

2015-05-05 Thread Martin Maechler
Henrik Bengtsson henrik.bengts...@ucsf.edu on Mon, 4 May 2015 12:20:44 -0700 writes: In Section 'Indexing by vectors' of 'R Language Definition' (http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Indexing-by-vectors) it says: Integer. All elements of i must

Re: [Rd] Wrongly checked MD5 checksums in R 3.2.0's windows binary

2015-05-11 Thread Martin Maechler
Tal Galili tal.gal...@gmail.com on Sun, 10 May 2015 23:13:09 +0300 writes: Dear R-devel members, Several R user recently reported https://github.com/talgalili/installr/issues/30 (while using the installr http://cran.r-project.org/web/packages/installrpackage) that

Re: [Rd] Unexpected failure when calling new() with unnamed arg and

2015-05-13 Thread Martin Maechler
in reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, : B is not eligible to be the data part of another class (must be a basic class or a virtual class with no slots) So, I am not yet committing my changes to R-devel. Hopefully more on this, later today. Martin Maechler, ETH Zurich Thanks, H

Re: [Rd] PATCH: library(..., quietly=TRUE) still outputs Loading required package: ... (forgot to pass down 'quietly')

2015-05-11 Thread Martin Maechler
Henrik Bengtsson henrik.bengts...@ucsf.edu on Sat, 9 May 2015 13:57:12 -0700 writes: Calling library(..., quietly=TRUE) may still output: Loading required package: other pkg in some cases, e.g. library(R.utils, quietly=TRUE) Loading required package: R.methodsS3

[Rd] \alias{} -- rather \concept{} for conceptual links to help pages

2015-05-18 Thread Martin Maechler
() and hence ??topic will find. The other advantage of \concept{} is that you can use short phrases, i.e., \concept{all variable combinations} would be possible here. (Better wording proposals for this specific case are welcome! -- maybe privately). Martin Maechler, ETH Zurich On Sun, May 17

Re: [Rd] Why is the diag function so slow (for extraction)?

2015-05-12 Thread Martin Maechler
Steve Bronder sbron...@stevebronder.com on Thu, 7 May 2015 11:49:49 -0400 writes: Is it possible to replace c() with .subset()? It would be possible, but I think entirely wrong. .subset() is documented to be an internal function not to be used lightly and more to the point it is

Re: [Rd] S4 method dispatch sometimes leads to incorrect when object loaded from file?

2015-05-12 Thread Martin Maechler
Martin Morgan mtmor...@fredhutch.org on Mon, 11 May 2015 10:18:07 -0700 writes: On 05/10/2015 08:19 AM, Martin Morgan wrote: Loading an S4 object from a file without first loading the library sometimes (?, the example below and actual example involves a virtual base class

Re: [Rd] RObjectTables freezes in R 3.2.0 RC on 32bit systems

2015-04-15 Thread Martin Maechler
Jeroen Ooms jeroeno...@gmail.com on Tue, 14 Apr 2015 23:11:01 -0700 writes: On Tue, Apr 14, 2015 at 6:29 PM, Jeroen Ooms jeroeno...@gmail.com wrote: Things work as expected up till dbread(), but once the object-table is attached, R freezes on 32bit whereas it works

Re: [Rd] RFC: sigma() in package:stats ?

2015-04-15 Thread Martin Maechler
Martin Maechler maech...@lynne.stat.math.ethz.ch on Fri, 10 Apr 2015 16:28:06 +0200 writes: I'm proposing to add something like this to the stats package : -- ### The sigma in lm/nls - like models: sigma

Re: [Rd] behavior of as.integer(5000000000)

2015-04-17 Thread Martin Maechler
Hervé Pagès hpa...@fredhutch.org on Mon, 13 Apr 2015 23:36:14 -0700 writes: On 04/13/2015 11:32 PM, Martin Maechler wrote: Hi, as.integer(50) [1] 2147483647 Warning message: inaccurate integer conversion in coercion as.integer

Re: [Rd] Probably a bug in the dendextend package

2015-05-20 Thread Martin Maechler
Tal Galili tal.gal...@gmail.com on Mon, 18 May 2015 23:01:44 +0300 writes: The problem: === Once a dendrogram has a branch with both a line type AND a color (which is a character color), the plot.dendrogram function will not plot and return an error. If the

Re: [Rd] Fix for bug in arima function

2015-05-21 Thread Martin Maechler
the initialization for the optimization routine. The proposed fix leaves the deliberate part of the patch unchanged (it preserves the value of init0). I can confirm this... a change introduced in R 3.0.2. I'm about to commit changes ... after also adding a proper regression test. Martin Maechler

[Rd] The R Foundation announces new mailing list 'R-package-devel'

2015-05-21 Thread Martin Maechler
. Please read the description of the mailing list here https://stat.ethz.ch/mailman/listinfo/r-package-devel or below, subscribe and start using it! For the R foundation, Martin Maechler, Secretary General --- About R-package-devel (from above URL): - This list

Re: [Rd] Lack of protection bug in current R release candidate

2015-06-15 Thread Martin Maechler
-trivial like this. We'd be *very* happy to get such problems during alpha or beta testing phase (or even before). Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Lack of protection bug in current R release candidate

2015-06-15 Thread Martin Maechler
a regression test. Thank you once more, Radford! Martin Maechler __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] RFC: Declaring foo.bar as nonS3method() ?!

2015-06-12 Thread Martin Maechler
, and for that reason, I'm cross posting this (as one of the famous exceptions that accompany real-life rules!!) to R-devel. and actually I did *not* cross post, but have now moved the relevant part of the thread to R-devel. Martin Maechler, ETH Zurich

Re: [Rd] RFC: Declaring foo.bar as nonS3method() ?!

2015-06-13 Thread Martin Maechler
, Jun 12, 2015 at 6:52 AM, Kurt Hornik kurt.hor...@wu.ac.at wrote: Duncan Murdoch writes: On 12/06/2015 7:16 AM, Kurt Hornik wrote: Duncan Murdoch writes: On 12/06/2015 4:12 AM, Martin Maechler wrote: This is a topic ' apparent S3 methods note in R CMD check

Re: [Rd] RFC: Declaring foo.bar as nonS3method() ?!

2015-06-12 Thread Martin Maechler
functions that can't easily be changed. Hadley On Fri, Jun 12, 2015 at 6:52 AM, Kurt Hornik kurt.hor...@wu.ac.at wrote: Duncan Murdoch writes: On 12/06/2015 7:16 AM, Kurt Hornik wrote: Duncan Murdoch writes: On 12/06/2015 4:12 AM, Martin Maechler wrote

[Rd] Nabble gibberish on R-devel: please stop it (Re: S3 internal ...)

2015-06-04 Thread Martin Maechler
should be able to subscribe to a mailing list and deal with mail filtering etc... Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] MetaCran website v1.0.0-alpha

2015-05-27 Thread Martin Maechler
Hi Gábor, just to you : Gábor Csárdi csardi.ga...@gmail.com on Tue, 26 May 2015 14:16:00 -0400 writes: On Tue, May 26, 2015 at 2:10 PM, Gabriel Becker gmbec...@ucdavis.edu wrote: [...] Well, sort of. I mean if the package is being actively developed not on

Re: [Rd] Fix for bug in arima function

2015-05-28 Thread Martin Maechler
Patrick Perry ppe...@stern.nyu.edu on Wed, 27 May 2015 23:19:09 -0400 writes: {@PP, you forgot this part:} peter dalgaard pda...@gmail.com on Thu, 21 May 2015 14:36:03 +0200 writes: I suspect that what we really need is fitI - lm(x ~ xreg - 1, na.action =

Re: [Rd] building with tcltk on Ubuntu 14.04

2015-05-28 Thread Martin Maechler
Ben Bolker bbol...@gmail.com on Tue, 26 May 2015 11:13:41 -0400 writes: False alarm. Completely wiping out my build directory followed by ../R-devel/configure --with-tcl-config=/usr/lib/tclConfig.sh - --with-tk-config=/usr/lib/tkConfig.sh; make seems to work. (My

Re: [Rd] Fix for bug in arima function

2015-05-21 Thread Martin Maechler
peter dalgaard pda...@gmail.com on Thu, 21 May 2015 11:03:05 +0200 writes: On 21 May 2015, at 10:35 , Martin Maechler maech...@lynne.stat.math.ethz.ch wrote: I noticed that the 3.2.1 release cycle is about to start. Is there any chance that this fix will make

Re: [Rd] enableJIT in Rprofile leads to 'not a proper evaluation environment' on startup

2015-08-13 Thread Martin Maechler
in R-devel .. will be fixed in R 3.2.2 patched next week.. but is most probably not making it into R 3.2.2 which has been in code freeze, to be released tomorrow(!). Martin Maechler, ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch

Re: [Rd] Weird issue when iterating through dates

2015-08-13 Thread Martin Maechler
(Resend: was meant for R-devel, not just Joshua) On Wed, Aug 12, 2015 at 10:55 AM, Gábor Csárdi csardi.ga...@gmail.com wrote: I am not sure if this is a bug or not. I would argue that this isn't a bug, not even in the documentation of for (even though it might be clearer). ?for says that

Re: [Rd] all.equal: possible mismatch between behaviour and documentation

2015-07-30 Thread Martin Maechler
precise) scaled by the mean absolute value of those finite entries of \code{target} where it differs from \code{current} or yet another version which is both precise and understandable ? Martin Maechler, ETH Zurich All the best, Jon __ R

Re: [Rd] Improvements (?) in stats::poly and stats::polym.

2015-07-23 Thread Martin Maechler
MM == Martin Maechler maech...@stat.math.ethz.ch on Fri, 17 Jul 2015 18:00:28 +0200 writes: MM Dear Keith, keith.jew...@campdenbri.co.uk on Thu, 16 Jul 2015 08:58:11 + writes: Dear R Core Team, Last week I made a post to the R-help mailing list “predict.poly

Re: [Rd] Building r-devel fails on Ubuntu (old and new as well)

2015-07-16 Thread Martin Maechler
Gábor Csárdi csardi.ga...@gmail.com on Thu, 16 Jul 2015 07:18:00 -0400 writes: ... making array.d from array.c array.c:33:23: fatal error: duplicate.h: No such file or directory compilation terminated. ...

Re: [Rd] Improvements (?) in stats::poly and stats::polym.

2015-07-17 Thread Martin Maechler
Dear Keith, keith.jew...@campdenbri.co.uk on Thu, 16 Jul 2015 08:58:11 + writes: Dear R Core Team, Last week I made a post to the R-help mailing list “predict.poly for multivariate data” https://stat.ethz.ch/pipermail/r-help/2015-July/430311.html but it has

Re: [Rd] rank(, ties.method="last")

2015-10-22 Thread Martin Maechler
43:02 +0200 writes: >> Den 2015-10-21 kl. 07:24, skrev Suharto Anggono Suharto Anggono via R-devel: >>> Marius Hofert-4-- >>>> Den 2015-10-09 kl. 12:14, skrev Martin Maechler: >>>> I think so: the code above doe

Re: [Rd] rank(, ties.method="last")

2015-10-21 Thread Martin Maechler
>>>>> Henric Winell <nilsson.hen...@gmail.com> >>>>> on Wed, 21 Oct 2015 13:43:02 +0200 writes: > Den 2015-10-21 kl. 07:24, skrev Suharto Anggono Suharto Anggono via R-devel: >> Marius Hofert-4-- >&g

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-19 Thread Martin Maechler
>>>>> Vinh Nguyen <vinhdi...@gmail.com> >>>>> on Fri, 9 Oct 2015 06:35:01 -0700 writes: > On Oct 8, 2015 11:36 PM, "Martin Maechler" > <maech...@stat.math.ethz.ch> wrote: >> >> >>>>> Vi

Re: [Rd] Unexpected failure when calling new() with unnamed arg and

2015-10-08 Thread Martin Maechler
etc. Martin > Cheers, > Josh > On Thu, May 14, 2015 at 8:13 AM, Hervé Pagès > <hpa...@fredhutch.org> wrote: >> Thanks Martin for looking into this. H. >> >> >> On 05/13/2015 03:57 AM, Martin Maechler wr

Re: [Rd] rank(, ties.method="last")

2015-10-09 Thread Martin Maechler
se names(y) <- nm[!nas] > y > } > ## MWE > x <- c(10, 11, 11, 12, 12, 13) > rank(x, ties.method="first") > rank2(x, ties.method="last") Indeed, this makes sense to me, and is easy enough to document and maintain, and preferable to asking useRs to us

Re: [Rd] identical(..., ignore.environment=TRUE)

2015-10-13 Thread Martin Maechler
> Duncan Murdoch > on Mon, 12 Oct 2015 19:31:11 -0400 writes: > On 12/10/2015 9:51 AM, Ben Bolker wrote: >> Duncan Murdoch gmail.com> writes: >> BB> > It seems odd/inconvenient to me that the > "ignore.environment" argument

Re: [Rd] R 3.2.2 64 bit compilation error on AIX

2015-10-09 Thread Martin Maechler
ctually, I think we (R Core) should just apply that patch to the R/src/extras/tre/ sources. But this does not seem to be related to your original problem where compilation stopped during tools package building, or does it ? Martin Maechler, ETH Zurich > -- Vinh > On Thu, Oct 8,

Re: [Rd] identical(..., ignore.environment=TRUE)

2015-10-13 Thread Martin Maechler
check-all' ) [Yes, I think I know why they probably won't come from you, Bill, unfortunately ..] Martin > Bill Dunlap > TIBCO Software > wdunlap tibco.com > On Tue, Oct 13, 2015 at 8:39 AM, Martin Maechler <maech...@stat.math.ethz.ch > > wrote: > > >>>

Re: [Rd] Issues with libcurl + HTTP status codes (eg. 403, 404)

2015-08-27 Thread Martin Maechler
DM == Duncan Murdoch murdoch.dun...@gmail.com on Wed, 26 Aug 2015 19:07:23 -0400 writes: DM On 26/08/2015 6:04 PM, Jeroen Ooms wrote: On Tue, Aug 25, 2015 at 10:33 PM, Martin Morgan mtmor...@fredhutch.org wrote: actually I don't know that it does -- it addresses the

Re: [Rd] match()/%in% with language objects?

2015-08-26 Thread Martin Maechler
William Dunlap wdun...@tibco.com on Tue, 25 Aug 2015 09:47:23 -0700 writes: match(x,table) and x%in%table work when x and table are lists of language objects or expressions. E.g., expression(quote(1+2), quote(log2(16))) %in% expression(3, quote(1+2), c(4L,5L,6L,7L))

Re: [Rd] No new daily R-devel tarball since r69202?

2015-09-07 Thread Martin Maechler
> Rainer Hurling > on Sun, 6 Sep 2015 08:40:13 +0200 writes: > Am 05.09.2015 um 19:09 schrieb peter dalgaard: >> >>> On 05 Sep 2015, at 13:54 , Rainer Hurling >>> wrote: >>> >>> Am 05.09.2015 um 10:18 schrieb peter

Re: [Rd] R-devel_2015-09-14 throws an error in reg-packages test

2015-09-17 Thread Martin Maechler
> Jeroen Ooms > on Wed, 16 Sep 2015 22:56:19 +0200 writes: > On Wed, Sep 16, 2015 at 9:32 PM, Avraham Adler wrote: >> When running make check, I get the following error: >> >> running code in 'reg-packages.R'

Re: [Rd] Should as.complex(NaN) -> NA?

2015-09-22 Thread Martin Maechler
whereas e.g., complex(re = Inf, im = NaN) considered as one of the infinitely many complex infinities by at least some of the C library implementations. --- I have found that match(), unique(), and duplicated() still behave pretty pecularly --- I'd say bugously --- even after the 69410

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-08 Thread Martin Maechler
> John Chambers > on Mon, 7 Dec 2015 16:05:59 -0800 writes: > We do need an explicit method here, I think. > The issue is that as() uses methods for the generic function coerce() but cannot use inheritance in the usual way (if it did, you would be

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-11 Thread Martin Maechler
>>>>> Martin Maechler <maech...@stat.math.ethz.ch> >>>>> on Tue, 8 Dec 2015 15:25:21 +0100 writes: >>>>> John Chambers <j...@r-project.org> >>>>> on Mon, 7 Dec 2015 16:05:59 -0800 writes: >> We do nee

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-12 Thread Martin Maechler
uot;integer", "double"} { class - subclasses } 2) as(1L, "numeric") continues to return 1L .. since integer is one case of "numeric" 3) as(1L, "double") newly returns 1.0 {and in fact would be

Re: [Rd] For integer vectors, `as(x, "numeric")` has no effect.

2015-12-19 Thread Martin Maechler
>>>>> Martin Maechler <maech...@stat.math.ethz.ch> >>>>> on Sat, 12 Dec 2015 10:32:51 +0100 writes: >>>>> John Chambers <j...@r-project.org> >>>>> on Fri, 11 Dec 2015 10:11:05 -0800 writes: >> Somehow, the

Re: [Rd] array() ignores illegal non-list dimnames

2015-12-19 Thread Martin Maechler
> William Dunlap via R-devel > on Thu, 17 Dec 2015 14:40:18 -0800 writes: > Is there a reason that array() silently ignores dimnames > that are not a list but matrix() gives an error? >> str(matrix(11:14, 2, 2, dimnames=c("Rows","Cols"))) >

Re: [Rd] Outdated information in regex.Rd

2015-11-19 Thread Martin Maechler
> Mikko Korpela > on Wed, 18 Nov 2015 11:35:14 +0200 writes: > The NEWS for R-devel has the following item: >> The previously included versions of zlib, bzip2, xz and PCRE have >> been removed, so suitable external (usually system) versions are

Re: [Rd] Small inaccuracy in the Writing R Extensions manual

2016-01-12 Thread Martin Maechler
> Duncan Murdoch > on Tue, 12 Jan 2016 07:32:05 -0500 writes: > On 11/01/2016 11:59 PM, Berwin A Turlach wrote: >> G'day all, >> >> In Chapter 1.4 (Writing package vignettes) the Writing R >> Extensions manual states: >> >> By

[Rd] factors with non-unique ("duplicated") levels have been deprecated since 2009 -- are *more* deprecated now -- and why you should be hesitant misusing suppressWarnings()

2016-06-04 Thread Martin Maechler
labels were correct. They should have seen that factor() was called sometimes in situations it produced an invalid factor namely one where some levels were duplicated, and so the memisc authors could have ensured that the above method would produce correct factors. Martin Maechler, R core team / ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Trivial patch for merge.Rd

2016-06-09 Thread Martin Maechler
> Marc Schwartz > on Wed, 8 Jun 2016 21:13:40 +0200 writes: >Hi all, > After replying to r-help earlier today on the merge() related thread, I > noted a trivial grammatical error in the description for the 'suffixes' > argument in it's help

Re: [Rd] readlines() truncates text file with Codepage 437 encoding

2016-06-09 Thread Martin Maechler
resulting character string with attributes ##' @author Martin Maechler wb.readL <- function(i, file.name = tempfile("bin"), encoding = "437") { stopifnot(is.integer(i), 0 <= i, i <= 255, is.character(file.name)) ff <- file(file.name, "wb")

Re: [Rd] getGraphicsEvent on X11 and event queuing

2016-06-09 Thread Martin Maechler
Hi Frederik, > > on Tue, 7 Jun 2016 15:20:05 -0700 writes: > ... I just realized that setGraphicsEventHandlers or > getGraphicsEvent could have an 'onIdle' callback, to be > called somewhere in the polling loop of gevents.c:163 - I > think this

Re: [Rd] readlines() truncates text file with Codepage 437 encoding

2016-06-08 Thread Martin Maechler
he attachment from it)) Martin Maechler ETH Zurich  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÿ­›œ¦®ªøñýæú§¯¬«¨Ž’€¥™šá …  ƒ„†‘‡Š‚ˆ‰¡Œ‹¤•¢“”ö—£–˜Ÿâéäèêàëîãåçíüžùûìï÷ðóò©ôõijڿÀÙôÂÁÅͺÕÖɸ·»ÔÓȾ½¼ÆÇ̵¶¹Ñ

Re: [Rd] Small mistake in ?raw

2016-06-08 Thread Martin Maechler
> Mikko Korpela > on Tue, 7 Jun 2016 12:41:54 +0300 writes: > In ?raw (src/library/base/man/raw.Rd), the final line of Examples seems > to be off: >> isASCII("\x9c25.63") # false (in Latin-1, this is an amount in UK pounds) > The

Re: [Rd] complex NA's match(), etc: not back-compatible change proposal

2016-05-30 Thread Martin Maechler
here ... notably after the "proposed" (rather only "considered") change '1 A' above ? Can "the" new behavior easily be described in words (if '1 A' above is already assumed)? At the moment, I would not tackle Problem 2. It would become less problematic o

[Rd] segfault / crash when asking for large memory via strrep()

2016-06-01 Thread Martin Maechler
We've had this more general topic on R-help, and also in R-devel recently. There's one case here where I get the feeling R never gets into swapping but more directly aborts possibly from a bug we can more easily fix. Today I've been working (successfully! - not yet committed) at fixing str()

Re: [Rd] factor(x, exclude=NULL) for factor x; names in as.factor()

2016-05-31 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Mon, 30 May 2016 17:20:08 + writes: > In R 3.3.0 (also in R 2.7.2), the documentation on 'factor', in "Details" section, has this statement. > 'factor(x, exclude = NULL)' applied to a factor is a

Re: [Rd] as.data.frame and illegal row.names argument (bug in package:DoE.wrapper?)

2016-01-16 Thread Martin Maechler
> William Dunlap via R-devel > on Wed, 13 Jan 2016 13:46:05 -0800 writes: > as.data.frame methods behave inconsistently when they are given a row.name > argument of the wrong length. The matrix method silently ignores row.names > if it has the wrong length and

Re: [Rd] as.data.frame and illegal row.names argument (bug in package:DoE.wrapper?)

2016-01-14 Thread Martin Maechler
two (potential) bugs: - one in R [not reporting erronous as.data.frame() usage] - one in DoE.wrapper I'm going to look into the R one, which is indeed in the as.data.frame.vector() method, as you've noted. -- Martin Maechler ETH Zurich __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] inconsistency in treatment of USE.NAMES argument

2016-02-09 Thread Martin Maechler
> Hervé Pagès > on Mon, 8 Feb 2016 10:48:50 -0800 writes: > Hi, > Both vapply() and sapply() support the 'USE.NAMES' argument. According > to the man page: > USE.NAMES: logical; if ‘TRUE’ and if ‘X’ is character, use ‘X’ as >‘names’ for

[Rd] Deprecating old pkgDepends(), package.dependencies() in tools

2016-02-13 Thread Martin Maechler
e of the deprecated functions and hence will get a warning, and find it hard to replace that use by a combination of available.packages() and package_dependencies() {note the "_"}, please ask here, as we may have overlooked edge cases. This should make this part of tools-package functionality easier

Re: [Rd] More Capability for Capabilities

2016-01-28 Thread Martin Maechler
> Paul Grosu > on Thu, 28 Jan 2016 07:53:13 -0500 writes: > Hi Dario, > Here are another couple of other fun functions you can utilize besides the > ones Dirk recommended :) > extSoftVersion() > grSoftVersion() > Below is an example:

Re: [Rd] Best way for rgl's .onLoad to fail?

2016-02-01 Thread Martin Maechler
> "BH" == Bryan Hanson > on Sun, 31 Jan 2016 09:50:46 -0500 writes: BH> I think the 2nd option will be more palatable to BH> inexperienced users, but both do state the important BH> detail. Bryan >> On Jan 30, 2016, at 4:11 PM, Duncan Murdoch

Re: [Rd] Wrong config check for __libc_stack_end

2016-02-01 Thread Martin Maechler
> Alba Pompeo > on Fri, 29 Jan 2016 08:23:26 -0200 writes: > Here is my log from 'make check' using an Intel i5 64-bit > processor - http://pastebin.com/raw/N6SYAuFX Here is > Isaac's log from 'make check' using an Intel Atom 32-bit > processor -

<    3   4   5   6   7   8   9   10   11   12   >