Re: [Rd] surprised matrix (1:256, 8, 8) doesn't cause error/warning

2021-02-09 Thread Martin Maechler
ple…” into a single warning, if appropriate (as in two of the examples above), but that would require bigger surgery way above my payscale. I agree that in those cases it should only show one warning, and to keep things simple I'd say it should just be the 2nd of those above or more precisely

Re: [Rd] Corrupt internal row names when creating a data.frame with `attributes<-`

2021-03-01 Thread Martin Maechler
"regular" 1:n integer row names which would be ALTREP compacted automatically for non-small 'n'. Last but not least, the check in tibble that was mentioned in this thread, should almost surely be fixed, if gives a problem for these example, and I claim it has been *that* code that has buggy rather than base R's one. Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Potential improvements of ave?

2021-03-16 Thread Martin Maechler
handling also to C and have that happen *after* the C code looks if it's an ALTREP object and if that "knows it's sorted". Martin > On Mon, Mar 15, 2021 at 12:01 PM SOEIRO Thomas > wrote: >> Hi Abby, >> >> Thank you for your

Re: [Rd] quantile() names

2021-03-17 Thread Martin Maechler
Getting back to this after 3 months : >>>>> Martin Maechler >>>>> on Wed, 16 Dec 2020 11:13:32 +0100 writes: >>>>> Gabriel Becker >>>>> on Mon, 14 Dec 2020 13:23:00 -0800 writes: >> Hi Edgar, I certainly do

Re: [Rd] Possible x11 window manager window aggregation under one icon?

2021-03-23 Thread Martin Maechler
firefox (where I really typically only want one firefox running, already being a crazy process generator and sometimes memory hog). The two (or more) different R processes are entirely autonomous (in > 99.5% of cases), and I would rather have the current proposal than a possibly quite a bit mo

Re: [Rd] [Solved] Possible x11 window manager window aggregation under one icon?

2021-03-24 Thread Martin Maechler
e standard R x11 devices. I will try to attach a small screenshot, we'll > see how mailman likes it. Martin should still be able to get the old (and to > me, buggy) behaviour back by removing the one key line from the .desktop > file, if his Fedora environment ever u

Re: [Rd] [Solved] Possible x11 window manager window aggregation under one icon?

2021-03-26 Thread Martin Maechler
>>>>> Duncan Murdoch >>>>> on Thu, 25 Mar 2021 10:41:46 -0400 writes: > On 25/03/2021 9:18 a.m., Dirk Eddelbuettel wrote: >> >> On 24 March 2021 at 10:30, Martin Maechler wrote: >> | For this reason I've committed t

Re: [Rd] Sys.timezone() fails on Linux under Microsoft WSL

2021-04-14 Thread Martin Maechler
> Brenton Wiernik > on Tue, 13 Apr 2021 09:15:50 -0400 writes: > In Microsoft’s Windows Subsystem for Linux (WSL or WSL2), > there is not system framework, so utilities that depend on > it fail. This includes timedatectl which R uses in > Sys.timezone(). The timedatect

Re: [Rd] R CMD INSTALL warning for S4 replacement functions on R 4.1.0-alpha

2021-04-24 Thread Martin Maechler
er that ... but none happened the last couple of weeks, so R 4.1.0 and R-devel should be identical here.... but the CRAN checks using R-devel don't seem to show anything. ... ... hence my deep puzzlement. Thank you once more for the report, Martin -- Martin Maechler ETH Zurich and R Core team __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R CMD INSTALL warning for S4 replacement functions on R 4.1.0-alpha

2021-04-24 Thread Martin Maechler
provides a (careful, minimal, ..) patch, presumably to src/library/tools/R/Rd2HTML.R Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] Msg not getting posted (or much delayed (was "R check false positive ..")

2021-04-24 Thread Martin Maechler
> Dénes Tóth > on Wed, 21 Apr 2021 12:57:48 +0200 writes: > > Disclaimer: I sent this report first to r-package-de...@r-project.org > but it seems it has not been delivered to the list - re-trying to r-devel > Also, for R-devel, your msg sat for 3 days i

Re: [Rd] NEWS item for bugfix in normalizePath and file.exists?

2021-04-28 Thread Martin Maechler
e input had an Encoding(.) that was "fishy" in some sense given the "context" (OS, locale, OS_version, ICU-presence, ...). In particular, when the underlying code sees encoding-translation issues for a string, NA would be returned instead of an error. Martin > On

Re: [Rd] New post not readable

2021-04-28 Thread Martin Maechler
oundation is the official 'R Foundation' twitter account *and* that it also uses the Blog feed .. > Looking forward to reading the new post. Me too, thank you Lluís , for the "heads up"! Martin > Cheers, > Lluís __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] as.list fails on functions with S3 classes

2021-04-29 Thread Martin Maechler
7;s UseMethod(). Since R 4.0.0, we have provided R function .class2() to give the same result as the internal R_data_class2(), and hence show the classes (in the correct order!) which are really for S3 dispatch. The NEWS entry for that was \item New function \code{.class2()} provides

Re: [Rd] Inconsistency in median()

2021-05-04 Thread Martin Maechler
thod for the corresponding class has been defined correctly; I've encountered quite a few cases where people created vector-like classes but did not provide a "correct" subsetting method (typically you should make sure both a `[[` and `[` method works!). Best regards, Martin Martin M

Re: [Rd] Testing R build when using --without-recommended-packages?

2021-05-05 Thread Martin Maechler
d packages. Note that for complete testing you will need a number of other .. .. --- So, our (R core) own intent has been that 'make check' should run w/o rec.packages but

Re: [Rd] R-devel new warning: no longer be an S4 object

2021-05-10 Thread Martin Maechler
> Jan Gorecki > on Mon, 10 May 2021 12:42:09 +0200 writes: > Hi R-devs, > R 4.0.5 gives no warning. Is it expected? Searching the news for "I(" > doesn't give any info. Thanks > z = I(getClass("MethodDefinition")) Now what exactly did you intend with the above line ?

Re: [Rd] `mode`

2021-05-18 Thread Martin Maechler
f R (of 25+ years). Thank you! I've already fixed this in the sources' trunk (svn rev 80321) a minute ago; of course this will not make it anymore into R 4.1.0 but in its "patched" version, and then 4.1.1 and one. With thankful regards, Martin -- Martin Maechler ETH Zurich

Re: [Rd] dgTMatrix Segmentation Fault

2021-06-08 Thread Martin Maechler
ver on Linux based ones (Ubuntu, Debian, Fedora, CentOS..), but maybe I'm too optimistic there as well. Note: I now also tried on our oldish Windows (Terminal) Server, and it also just gave errors that it could not allocate so much memory but did not produce a seg.fault. Currently, I don'

Re: [Rd] dgTMatrix Segmentation Fault

2021-06-10 Thread Martin Maechler
>>>>> Ben Bolker >>>>> on Wed, 9 Jun 2021 21:11:18 -0400 writes: > Nice! Indeed -- and thanks a lot, Dario (and Martin Morgan !) for getting down to the root problem. so, indeed a bug in Matrix (though "far away" from 'dgTMatrix').

Re: [Rd] Should last default to .Machine$integer.max-1 for substring()

2021-06-21 Thread Martin Maechler
g? The "drawback" is of course that .Machine$integer.max is still a function call (as R beginners may forget) contrary to L, but that may even be inlined by the byte compiler (? how would we check ?) and even if it's not, it does more clearly convey the concept a

Re: [Rd] Should last default to .Machine$integer.max-1 for substring()

2021-06-21 Thread Martin Maechler
>>>>> Tomas Kalibera >>>>> on Mon, 21 Jun 2021 10:08:37 +0200 writes: > On 6/21/21 9:35 AM, Martin Maechler wrote: >>>>>>> Michael Chirico >>>>>>> on Sun, 20 Jun 2021 15:20:26 -0700 writes: >> &

Re: [Rd] undefined subclass warning

2021-06-30 Thread Martin Maechler
g in their requirement of getting rid of that warning. and as you've suggested in another thread, I should alleviate the problem by uploading a new version of 'MatrixModels' models to CRAN {solving another small unrelated buglet} so the warnings will go away for everyone who updates their installed packages. Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] unicode in R documentation

2021-07-13 Thread Martin Morgan
I have options(useFancyQuotes = FALSE) in my ~/.Rprofile. Martin Morgan On 7/13/21, 11:37 AM, "R-devel on behalf of Frederick Eaton" wrote: Dear R Team, I am running R from the terminal command line (not RStudio). I've noticed that R has been using Unicod

Re: [Rd] Trivial typo in help("browser")

2021-07-29 Thread Martin Maechler
ds to be changed. Unless I get convincing suggestions for improvements, I'll commit \item{expr}{a \dQuote{condition}. By default, and whenever not false after being coerced to \code{\link{logical}}, the debugger will be invoked, otherwise control is returned directly.} (and also a

Re: [Rd] \Sexpr[results=hide] produces \verb{ newlines }

2021-07-31 Thread Martin Maechler
ged(res, "\\verb") > > There are probably other ways of fixing this problem, e.g. by only > populating res if options$results != "hide" or only appending newlines > if res is non-empty. Thank you, Ivan, for the example and patch, I

Re: [Rd] I changed my vignette's file name to lowercase, then realized the url was case-sensitive

2021-08-02 Thread Martin Maechler
Dear Dominic, This is the wrong mailing list for such questions Do use 'R-help' or 'R-package-devel' instead, please. (and also please do use __plain text__ instead of "formatted" / "rich text" / ... e-mail ) Best, Martin Maechler >>>>&

Re: [Rd] attach "warning" is a message

2021-08-10 Thread Martin Maechler
>> > Looking at the history, this used to be cat() but got changed to a message in R 3.2.0 (r65385, CCIng Martin in case he remembers the rationale for warning vs message). I don't know for sure why it is not a warning, but I can see that it is more in the line with infor

Re: [Rd] problem with pipes, textConnection and read.dcf

2021-08-10 Thread Martin Maechler
ce of deparse() in such cases: NEWS has said • New function deparse1() produces one string, wrapping deparse(), to be used typically in deparse1(substitute(*)), e.g., to fix PR#17671. and the definition is a simple but useful oneliner deparse1 <- function (expr, collapse = " &qu

[Rd] difference of m1 <- lm(f, data) and update(m1, formula=f)

2021-08-11 Thread Martin Maechler
I'm diverting this from R-help to R-devel, because I'm asking / musing if and if where we should / could change R here (see below). >>>>> Martin Maechler on 11 Aug 2021 11:51:25 +0200 >>>>> Tim Taylor .. on 08:45:48 + writes: >> Manipula

Re: [Rd] Seeking opinions on possible change to nls() code

2021-08-20 Thread Martin Maechler
inverse cannot be computed > -- and similar for vcov(), of course, where the above error originates. { I think GSoC (andr other) students should start by studying and exploring relevant help pages before drawin

Re: [Rd] Seeking opinions on possible change to nls() code

2021-08-20 Thread Martin Maechler
>>>>> J C Nash >>>>> on Fri, 20 Aug 2021 11:41:26 -0400 writes: > Thanks Martin. I'd missed the intention of that option, > but re-reading it now it is obvious. > FWIW, this problem is quite nasty, and so far I've found >

Re: [Rd] Is it a good choice to increase the NCONNECTION value?

2021-08-24 Thread Martin Maechler
that's "about ok" -- are there other things to consider? Ideally, of course, the number of possible connections could be increased dynamically only when needed Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Is it a good choice to increase the NCONNECTION value?

2021-08-24 Thread Martin Maechler
> GILLIBERT, Andre > on Tue, 24 Aug 2021 09:49:52 + writes: > RConnection is a pointer to a Rconn structure. The Rconn > structure must be allocated independently (e.g. by > malloc() in R_new_custom_connection). Therefore, > increasing NCONNECTION to 1024 should only use

Re: [Rd] sep hard coded in write.ftable

2021-09-02 Thread Martin Maechler
on("digits"), sep = " ", ...) > { > r <- stats:::format.ftable(x, quote = quote, digits = digits, ...) > cat(t(r), file = file, append = append, > sep = c(rep(sep, ncol(r) - 1), "\n")) > invisible(x) > } I agree this

[Rd] Should Position() use match.fun()?

2021-09-08 Thread Steve Martin
Hello, All of the funprog functions except Position() use match.fun() early in the body of the function. (Filter() seems to rely on lapply() for this, but the effect is the same.) In most cases this isn't a problem, but I can't see why Position() shouldn't look something like Position2 <- functio

Re: [Rd] Unneeded if statements in RealFromComplex C code

2021-09-10 Thread Martin Maechler
is able to ignore them). In any case they should > probably be removed. I've cleaned up now, indeed back compatibly, i.e., removing both lines as you suggested. Thank you, Hervé! Martin > Cheers, > H. > -- > Hervé Pagès > Bioconductor Core Team &g

Re: [Rd] Question about quantile fuzz and GPL license

2021-09-15 Thread Martin Maechler
lt; fuzz*nppm, na.rm = TRUE)) h[sml] <- 0 or rather we would define fuzz as nppm * (k * .Machine$double.eps) for a small k. - - - OTOH, type=7 is the default, and I guess used in 99.9% of all uses of quantile, *and* does never use any fuzz Martin > -- > Sincerely

Re: [Rd] Slow try in combination with do.call

2021-09-16 Thread Martin Maechler
you say above. {The experts typically use tryCatch() directly, instead of try() , which may be the reason other experienced R developers have not stumbled over this ...} Thanks a lot, notably also for the clear repr.ex. below. Best regards, Martin > Example: > fun <-

Re: [Rd] Slow try in combination with do.call

2021-09-16 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Thu, 16 Sep 2021 17:48:41 +0200 writes: >>>>> Alexander Kaever >>>>> on Thu, 16 Sep 2021 14:00:03 + writes: >> Hi, >> It seems like a try(do.call(f, args)) can be very

Re: [Rd] formatC(character()) returns length 1 result, but is documented otherwise

2021-09-22 Thread Martin Maechler
to yours, so we will almost surely change this (for R-devel; possibly even consider "back" porting to R 4.1.1 patched). Thank you for the report and suggestion, Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] R-devel: as.character() for hexmode no longer pads with zeros

2021-09-23 Thread Martin Maechler
ot;6" "7" "8" "9" "a" "b" "c" "d" "e" "f" > as.character(as.hexmode(0:16)) [1] "00" "01" "02" "03" "04" "05" "06" "07"

Re: [Rd] trunc.Date and round.Date + documentation of DateTimeClasses

2021-09-30 Thread Martin Maechler
trunc.Date() currently does "behave as it should". Martin Maechler ETH Zurich and R Core >>>>> SOEIRO Thomas >>>>> on Thu, 30 Sep 2021 10:32:32 + writes: > About fractional days, trunc.Date2 actually seems to have no regression and to be ba

Re: [Rd] translation domain is not inferred correctly from a package's print methods -- intended behavior?

2021-10-01 Thread Martin Maechler
7)" Note: During my experiments, I also do observe things confusing to me, when using Rscript and R from the command line... in some cases getting errors (in Japanese) ... but that may be just in those cases I have left any space in the string ((in the case of 'R'

Re: [Rd] R 4.1.x make check fails, stats-Ex.R, step factor reduced below minFactor

2021-10-01 Thread Martin Maechler
> Andrew Piskorski > on Fri, 1 Oct 2021 05:01:39 -0400 writes: > I recently built R 4.1.1 (Patched) from source, as I have many older > versions over the years. This version, on Ubuntu 18.04.4 LTS: > R 4.1.1 (Patched), 2021-09-21, svn.rev 80946, x86_64-pc-linux-gnu

Re: [Rd] Crash/bug when calling match on latin1 strings

2021-10-11 Thread Martin Maechler
) extended your (Travers') example into self contained (no internet access) R script. Bugzilla PR#18211 :" match() memory corruption " https://bugs.r-project.org/show_bug.cgi?id=18211 with attachment 2929 --> https://bugs.r-project.org/attachment.cgi?id=2929&action=edit

Re: [Rd] int overflow writing long vectors to socketConnection

2021-10-12 Thread Martin Maechler
ced at the same when the type of 'len' in the R_SockWrite() header was changed from int to size_t .. and the intent must have been to do the same inside sock_write(). > Best, > -- > Zafer Thank you for the report! Martin Maechler ETH Zurich and R Core __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Slow try in combination with do.call

2021-10-12 Thread Martin Maechler
e.g., from some do.call(). Thanks to Alexander Kaever's suggestion posted to R-devel. Martin >>>>> nospam@altfeld-im de >>>>> on Tue, 12 Oct 2021 12:11:10 +0200 writes: > In fact an attentive user reported the same type of (slow due to depar

Re: [Rd] Potential bugs in table dnn

2021-10-14 Thread Martin Maechler
s(100, 7)) POISSON_7 2 3 4 5 6 7 8 9 10 11 12 13 14 4 5 14 16 20 8 8 13 1 5 3 2 1 R> I'm fine if you move this to R bugzilla {where it remains more easily findable in say 1 year's time}. Thank you for the report and diagnosis so far! Martin

Re: [Rd] Potential bugs in table dnn

2021-10-14 Thread Martin Maechler
t one \code{list} with its own \code{\link{names}()}, the internal > function With regards, Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] stats::fft produces inconsistent results

2021-10-20 Thread Martin Maechler
> GILLIBERT, Andre > on Wed, 20 Oct 2021 08:10:00 + writes: > Hello, > That sounds like a good diagnosis! > Indeed, R vectors are passed "by reference" to C code, but the semantic must be "by value", i.e. the C function must NOT change the contents of the vector, exc

Re: [Rd] stats::fft produces inconsistent results

2021-10-20 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Wed, 20 Oct 2021 11:26:21 +0200 writes: [] > Thank you, André , that's very good. > Just to state the obvious conclusion: > If Ben's suggestion is correct (and André has explained

Re: [Rd] Fwd: Using existing envars in Renviron on friendly Windows

2021-10-21 Thread Martin Maechler
> Michał Bojanowski > on Wed, 20 Oct 2021 16:31:08 +0200 writes: > Hello Tomas, > Yes, that's accurate although rather terse, which is perhaps the > reason why I did not realize it applies to my case. > How about adding something in the direction of: > 1. Continu

Re: [Rd] Bug (?) in vignette handling

2021-10-29 Thread Martin Maechler
> Duncan Murdoch > on Thu, 28 Oct 2021 13:18:54 -0400 writes: > This StackOverflow post: https://stackoverflow.com/q/69756236/2554330 > points out that objects created in one vignette are available in a later > vignette. I don't think this should be happening: vignett

Re: [Rd] Wrong number of names?

2021-11-01 Thread Martin Maechler
ot;. Your proposal to have at least our deserialization code used in readRDS() do (at least *some*) validity checks seems good, but maybe we should think of more cases, and / or do such validity checks already during serialization { <-> saveRDS() here } ? .. Such questions then really are f

Re: [Rd] gettext(msgid, domain="R") doesn't work for some 'msgid':s

2021-11-05 Thread Martin Maechler
Jan 2005) | 2 lines include \n in whitespace ignored for R-level gettext I think this has been because simultaneously we had started to emphasize to useRs they should *not* end message/format strings in

Re: [Rd] gettext(msgid, domain="R") doesn't work for some 'msgid':s

2021-11-05 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 5 Nov 2021 17:55:24 +0100 writes: >>>>> Tomas Kalibera >>>>> on Fri, 5 Nov 2021 16:15:19 +0100 writes: >> On 11/5/21 4:12 PM, Duncan Murdoch wrote: >>> On 05/11/2021 1

Re: [Rd] gettext(msgid, domain="R") doesn't work for some 'msgid':s

2021-11-06 Thread Martin Maechler
achieved (more efficiently and naturally) by gettext("Execution halted\n", domain="R", trim=FALSE) but in any case, to *not* do the trimming anymore in general, as I proposed yesterday (see below) is not a good idea. > >>> Martin Maechler >>>>&

Re: [Rd] R-devel (r81196) hanging at dchisq(large) (PR#13309)

2021-11-16 Thread Martin Maechler
computations/approximations). -> https://cran.r-project.org/package=DPQ Best, Martin > sessionInfo: > R Under development (unstable) (2021-11-15 r81196) > Platform: x86_64-w64-mingw32/x64 (64-bit) > Running under: Windows 10 x64 (build 19043)

Re: [Rd] R-patched tarball at https://stat.ethz.ch/R/daily/ outdated

2021-11-18 Thread Martin Maechler
rsight by me (back in March). It's amazing nobody has seen the issue till now. I've fixed it a bit more than 3 hours ago. Thank you, Gábor ! Martin -- Martin Maechler, ETH Zurich and R Core team __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] substitute

2021-11-18 Thread Martin Maechler
1-liner !} Be assured that we agree that quote(A + ~B + C~D) should not "gain" any parentheses, indeed, and what you've been seeing can well be considered an intermediate step in iterations to get to improved deparsing in subtle situations. Thank you for the report, and best regards, Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Subsetting "dspMatrix" without coercion to "matrix"

2021-11-21 Thread Martin Maechler
matrix of the form cbind(i, j) I agree that this could be improved in the Matrix package; One reason this never happened is probably that we (the Matrix package authors) never had a relevant use case for speeding these up. Would you be interested in collaboration to improve the Matrix package

Re: [Rd] R-devel (r81196) hanging at dchisq(large) (PR#13309)

2021-11-24 Thread Martin Maechler
ther cases online where the extra precision and the > different assembler code of FMA vs. non-FMA has caused > bugs, such as [1]. Page 5 of this paper by Dr. William > Kahan sheds some light on why this may be happening [2] > (PDF). > Martin & Morton, having

Re: [Rd] string concatenation operator (revisited)

2021-12-07 Thread Martin Maechler
> Taras Zakharko > on Tue, 7 Dec 2021 12:56:30 +0100 writes: > I fully agree! General string interpolation opens a gaping security hole and is accompanied by all kinds of problems and decisions. What I envision instead is something like this: > f”hello {name}” > Which

Re: [Rd] string concatenation operator (revisited)

2021-12-07 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Tue, 7 Dec 2021 18:35:00 +0100 writes: >>>>> Taras Zakharko >>>>> on Tue, 7 Dec 2021 12:56:30 +0100 writes: >> I fully agree! General string interpolation opens a gaping security hole

Re: [Rd] plogis (and other p* functions), vectorized lower.tail

2021-12-09 Thread Martin Maechler
case .. I'd have found that ugly to add. ... ... ... but of course, if you can prove that the code bloat would not be large and not deteriorate speed in a measurable way and if you'd find someone to produce a comprehensive and tested patch ... Martin > With best wishes, > Ma

Re: [Rd] plogis (and other p* functions), vectorized lower.tail

2021-12-09 Thread Martin Maechler
>>>>> Sokol Serguei on Thu, 9 Dec 2021 17:13:36 +0100 writes: > On 09/12/2021 16:55, Ben Bolker wrote: >> >> >> On 12/9/21 10:03 AM, Martin Maechler wrote: >>>>>>>> Matthias Gondan >>>>>>&g

[Rd] Appropriate mailing list for " Improved LP/MIP solver "

2021-12-13 Thread Martin Maechler
ge developers to get their packaging problems solved, notably to get advice in making their packages ready for CRAN. Julian's question was really addressing the whole R developer community asking if some functionality was desirable to be added to the R-package space. For me one *the* approp

Re: [Rd] meaning of browser(skipCalls=) [and multiple mouse buttons]

2021-12-16 Thread Martin Maechler
Linux, and even less relevant for any of the other ways R is used interactively on non-Linux platforms. Maybe it would also apply to *some* uses of R on the Mac, but not even the default R-Mac GUI.. Sorry that this not as much encouraging as it probably should be, but I though you'd rather want *

Re: [Rd] Feature request: compareVersion

2021-12-21 Thread Martin Maechler
> Hi, > currently I have to use > compareVersion(as.character(packageVersion("shiny")), "0.11") > It would be nice if compareVersion would make the as.character > internally, rather then force the user to do it. > Thanks > Sigbert Well, if you follow the help page examples of packageVersion(

Re: [Rd] Why does lm() with the subset argument give a different answer than subsetting in advance?

2022-01-03 Thread Martin Maechler
'}' ) I've committed the help file additions to the R sources (R-devel) in svn r81434 . Thanks again and "Happy New Year" to all readers, Martin > On 12/26/21 8:35 PM, Balise, Raymond R wrote: >> Hello R folks, Today I noticed that using the subs

Re: [Rd] trivial typo in NEWS file

2022-01-03 Thread Martin Maechler
ar}, without which no progress can be visible. > \item \code{dimnames(table(d))} is more consistent in the case where Thank you, Ben! I will take care of this with my next commit (dealing with R's bugzilla PR#18272). Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] "getOption(max.print) omitted %d entries" may be negative

2022-01-03 Thread Martin Maechler
indows? ... ah, searching the R sources reveals uses of %lld *plus* #ifdef Win32 #include /* for %lld */ #endif so it seems we can and should probably change this ... [Please, C compiler / library standard experts, chime in !] Martin Maechler ETH Zurich and R core team __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] gsub() hex character range problems in R-devel?

2022-01-04 Thread Martin Morgan
libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_4.2.0 (I have built my own R on macOS; similar behavior is observed on a Linux machine) Any hints welcome, Martin Morgan __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] gsub() hex character range problems in R-devel?

2022-01-06 Thread Martin Morgan
em-dashes, ...) would require special treatment. It seems like the right thing to do is to handle the raw data in its original encoding, rather than to try to clean it to ASCII. Martin On 1/5/22, 4:17 AM, "Tomas Kalibera" wrote: Hi Martin, I'd add few comments to t

Re: [Rd] "getOption(max.print) omitted %d entries" may be negative

2022-01-08 Thread Martin Maechler
>>>>> Tomas Kalibera >>>>> on Mon, 3 Jan 2022 20:59:30 +0100 writes: > On 1/3/22 6:15 PM, Martin Maechler wrote: >>>>>>> Hugh Parsonage on Wed, 29 Dec 2021 00:36:51 +1100 >>>>>>> writes:

Re: [Rd] documentation patch for as.formula → reformulate

2022-01-10 Thread Martin Maechler
tation patch that adds the > alternative version and a \seealso{} link. >Happy to submit to r-bugzilla if requested. >cheers Ben Bolker x[DELETED ATTACHMENT external: reformulate_patch.txt, plain text] Thanks a lot, Ben! I've committed (+-) it to R-devel as svn rev 8146

Re: [Rd] partial matching of row names in [-indexing

2022-01-14 Thread Steve Martin
I don't think this is a bug in the documentation. The help page for `?[.data.frame` has the following in the last paragraph of the details: Both [ and [[ extraction methods partially match row names. By default neither partially match column names, but [[ will if exact = FALSE (and with a warning

Re: [Rd] model.weights and model.offset: request for adjustment

2022-02-03 Thread Martin Maechler
a frame method ). Faster in both cases, i.e., when there *is* a column and when there is none (and NULL is returned), e.g., for the first case > system.time(for(i in 1:2) df[["a"]]) user system elapsed 0.064 0.000 0.065 >

Re: [Rd] Bug in rbind.data.frame?

2022-02-09 Thread Martin Maechler
's rbind.data.frame() which now gives > rbind(data.frame(a = 1, b = 2), c(3, 4, 5)) a b 1 1 2 2 3 4 Warning message: In rbind(deparse.level, ...) : number of columns of result, 2, is not a multiple of vector length 3 of arg 2 > i.e., the same result, but *with* an informative warning, analogously to the warning that has been produce "forever" in the matrix case. Martin __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] str2lang throws error when the string is empty

2022-02-12 Thread Martin Maechler
;))) > Right now I'm using the following, which is ugly > as.call(list(quote(`[`), quote(x), quote(index1), alist(x=)[[1]])) Well, in such cases, much less ugly than both your version is to use substitute(), here e.g., > substitute(x[I,], list(I = quote(index1))) x[inde

Re: [Rd] Inconsistent behavior of stats::bw.nrd() and stats::bw.nrd0()

2022-02-24 Thread Martin Maechler
) function. Also note that the documentation (the help page) is more or less precise here, since as I said above, Scott did neither consider dealing with the not so uncommon case of IQR() == 0. But you are right that the help page could be more precise here and make sure that the robustness app

Re: [Rd] Floating Point with POSIXct

2022-03-03 Thread Martin Maechler
ull accuracy. Also, as you've noticed the R POSIX[cl]t code just truncates, i.e. rounds towards 0 unconditionally, and I tend to agree that it should rather round than truncate. But we should carefully separate the issues here, from the underlying inherent FAQ 7.31 truth t

Re: [Rd] intersect() change of behavior in 4.2

2022-04-14 Thread Martin Maechler
est, > Lluís I agree and have added an entry there ... still to be back ported to R 4.2.0 beta. Martin > On Tue, 12 Apr 2022 at 01:22, Gábor Csárdi wrote: >> >> I wonder if this change is intentional, and if it is, whether it is >> worth mentioning

Re: [Rd] How to access to internal header files

2022-05-24 Thread Martin Maechler
> Sebastian Fischer > on Tue, 24 May 2022 09:01:17 +0200 writes: > Dear R-devel Mailing List, > I would like to get a better understanding of R's internal structures by > using R's > C API. For that I would like to have access to all the C header files > that ar

Re: [Rd] qt() returns Inf with certain negative ncp values

2022-06-14 Thread Martin Maechler
exhibiting bogous (and already fixed) behavior of the non-central t CDF: https://rdrr.io/rforge/DPQ/src/tests/t-nonc-tst.R and https://rdrr.io/rforge/DPQ/src/tests/pnt-prec.R Indeed, this situation *can* be improved, but it needs dedicated work of people somewhat knowledgable in applied ma

Re: [Rd] stats::poly() stopped working for Date input -- intentional?

2022-08-05 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 8 Jul 2022 16:34:43 +0200 writes: >>>>> Michael Chirico via R-devel >>>>> on Thu, 7 Jul 2022 22:17:12 -0700 writes: >> SVN#80126 added rep.difftime, which means >&g

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-23 Thread Martin Maechler
nt hardwired behavior is documented. 4a) For as.POSIXlt.Date() to allow passing 'tz' needs changes in the C code, i.e., is considerable more work than for the as.POSIXct(), (or actually just post-processing in the R code, much less work) 4b) Only changing the behavior for as.POSIXc

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-23 Thread Martin Maechler
>>>>> Kurt Hornik >>>>> on Fri, 23 Sep 2022 09:57:49 +0200 writes: >>>>> Martin Maechler writes: > Currently in R-devel, R> as.POSIXlt.Date > function (x, ...) > { >if (any((y <- unclass(x)) > .Mach

Re: [Rd] Better 'undefined columns' error for data.frame

2022-09-24 Thread Martin Maechler
*minimal*, i.e., no white-space only changes etc Thank you in advance for trying to make R better ! With regards, Martin -- Martin Maechler ETH Zurich and R Core team > -- > Sincerely > Andr� GILLIBERT > [[alternative HTML version deleted]] ___

Re: [Rd] Date method of as.POSIXct does not respect tz

2022-09-24 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 23 Sep 2022 11:04:12 +0200 writes: >>>>> Kurt Hornik >>>>> on Fri, 23 Sep 2022 09:57:49 +0200 writes: >>>>> Martin Maechler writes: > > Currently in R-devel, >

Re: [Rd] as.character.POSIXt in R devel

2022-10-03 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Sun, 2 Oct 2022 08:42:50 + (UTC) writes: > With r82904, 'as.character.POSIXt' in R devel is changed. The NEWS item: > as.character() now behaves more in line with the >methods for atomic vectors such as numbers, an

Re: [Rd] as.character.POSIXt in R devel

2022-10-03 Thread Martin Maechler
ented (or is it ??) that the POSIXlt components should be thought to be recycling. If we decide we want that, once this is documented (and all methods/functions tested with such POSIXlt) it could also be used to use considerably smaller size POSIXlt objects, e.g, when all parts are in the same year, o

Re: [Rd] as.character.POSIXt in R devel

2022-10-03 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Mon, 3 Oct 2022 14:46:08 +0200 writes: >>>>> Suharto Anggono Suharto Anggono via R-devel >>>>> on Sun, 2 Oct 2022 08:42:50 + (UTC) writes: >> With r82904, 'as.character.P

Re: [Rd] A potential POSIXlt->Date bug introduced in r-devel

2022-10-06 Thread Martin Maechler
in Date/Time objects. > but this means the `NA` in the `mon` field is ignored. which I agree is bogous and we'll fix. Still, I did not get any feedback on asking about documentation etc on POSIXlt objects ... and I *had* mentioned I agree

Re: [Rd] A potential POSIXlt->Date bug introduced in r-devel

2022-10-07 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Thu, 6 Oct 2022 10:15:29 +0200 writes: >>>>> Davis Vaughan >>>>> on Wed, 5 Oct 2022 17:04:11 -0400 writes: >> Hi all, >> I think I have discovered a bug in the con

Re: [Rd] A potential POSIXlt->Date bug introduced in r-devel

2022-10-11 Thread Martin Maechler
>>>>> Davis Vaughan >>>>> on Fri, 7 Oct 2022 11:00:23 -0400 writes: > Martin, > FWIW, I scoured the docs using GitHub's new code search preview but can't > seem to find any reference to the fact that POSIXlt fields are internal

Re: [Rd] Bug with `[<-.POSIXlt` on specific OSes

2022-10-12 Thread Martin Maechler
o be called via .Internal(.) from a new R that provides this. Provisionally called balancePOXIXlt() because it both balances the 9 to 11 list-components of POSIXlt and it also puts all numbers of (sec, min, hour, mday, mon) into a correct range (and also computes correctl wday

Re: [Rd] Bug with `[<-.POSIXlt` on specific OSes

2022-10-12 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Wed, 12 Oct 2022 10:17:28 +0200 writes: >>>>> Kurt Hornik >>>>> on Tue, 11 Oct 2022 16:44:13 +0200 writes: >>>>> Davis Vaughan writes: >>> I've got a bit mo

Re: [Rd] Bug with `[<-.POSIXlt` on specific OSes

2022-10-18 Thread Martin Maechler
year = 116L, wday = 2L, yday = 340L, isdst = 1L)) > as.POSIXct(dlt)[1] is NA on Linux with timezone without DST. For example, after > Sys.setenv(TZ = "EST") Hmm... I needed time to look at the above. Indeed, one gets NA

<    6   7   8   9   10   11   12   13   14   15   >