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:06:25 -0400 writes: > In our work on a Google Summer of Code project > "Improvements to nls()", the code has proved sufficiently > entangled that we have found (so far!) few > straightforward changes that would not break legacy

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 > no method that reveals the underlying dangers well. An

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

2021-08-24 Thread Martin Maechler
> qweytr1--- via R-devel > on Tue, 24 Aug 2021 00:51:31 +0800 (GMT+08:00) writes: > At least in 2015, a github user, tobigithub, submit an > [issue](https://github.com/sneumann/xcms/issues/20) about > the error "Error in file(con, "w") : all connections are > in use" N

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
> SOEIRO Thomas > on Wed, 1 Sep 2021 15:01:43 + writes: > Dear all, > (This is a follow up of a previous suggestion for ftable that was added in R 4.1.0: https://stat.ethz.ch/pipermail/r-devel/2020-May/079451.html) > The sep argument is hard coded in write.ftable:

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

2021-09-10 Thread Martin Maechler
> Hervé Pagès > on Thu, 9 Sep 2021 17:54:06 -0700 writes: > Hi, > I just stumbled across these 2 lines in RealFromComplex (lines 208 & 209 > in src/main/coerce.c): > double attribute_hidden > RealFromComplex(Rcomplex x, int *warn) > { > if (ISNAN(x.r)

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

2021-09-15 Thread Martin Maechler
> GILLIBERT, Andre > on Tue, 14 Sep 2021 16:13:05 + writes: > On 9/14/21 9:22 AM, Abel AOUN wrote: >> However I don't get why epsilon is multiplied by 4 instead of simply using epsilon. >> Is there someone who can explain this 4 ? > .Machine$double.eps is the "pr

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

2021-09-16 Thread Martin Maechler
> Alexander Kaever > on Thu, 16 Sep 2021 14:00:03 + writes: > Hi, > It seems like a try(do.call(f, args)) can be very slow on error depending on the args size. This is related to a complete deparse of the call using deparse(call)[1L] within the try function. How about re

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
> Davis Vaughan > on Mon, 13 Sep 2021 16:35:47 -0400 writes: > Hi all, > I believe I have either found a small bug, or a possible inconsistency in > documentation. formatC() returns a length 1 result if given a length 0 > character() as input. > formatC(character

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

2021-09-23 Thread Martin Maechler
> Henrik Bengtsson > on Wed, 22 Sep 2021 20:48:05 -0700 writes: > The update in rev 80946 > (https://github.com/wch/r-source/commit/d970867722e14811e8ba6b0ba8e0f478ff482f5e) > caused as.character() on hexmode objects to no longer pads with zeros. Yes -- very much on purp

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
> Michael Chirico > on Mon, 12 Jul 2021 14:21:14 -0700 writes: > Here is a reprex: > # initialize reprex package > cd /tmp > mkdir myPkg && cd myPkg > echo "Package: myPkg" > DESCRIPTION > echo "Version: 0.0.1" >> DESCRIPTION > mkdir R > echo "print.m

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
result with the call path and links to the R source code in the github issue: > https://github.com/aryoda/tryCatchLog/issues/68#issuecomment-930593002 > On Thu, 2021-09-16 at 18:04 +0200, Martin Maechler wrote: >> > > > > > Martin Maechler

Re: [Rd] Potential bugs in table dnn

2021-10-14 Thread Martin Maechler
> SOEIRO Thomas > on Wed, 13 Oct 2021 11:12:09 + writes: > Inline comments below in the previous message I'm not 100% > sure if the current behavior is intended or not. If not, > here is a patch (which I can submit on R Bugzilla if > appropriate): Excuse us for no

Re: [Rd] Potential bugs in table dnn

2021-10-14 Thread Martin Maechler
Dear Thomas, actually, I have in the mean time already applied the changes I think are needed, both in the code and in the documentation. So, in this case, it may be a waste of time to still open a bugzilla issue, I think. Here are my current changes (not yet committed; of course I would also ad

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
> Duncan Murdoch > on Mon, 1 Nov 2021 06:36:17 -0400 writes: > The StackOverflow post > https://stackoverflow.com/a/69767361/2554330 discusses a > dataframe which has a named numeric column of length 1488 > that has 744 names. I don't think this is ever legal, but

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

2021-11-05 Thread Martin Maechler
> 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 10:51 a.m., Henrik Bengtsson wrote: >>> I'm trying to reuse some of the translations available in base R by >>> using: >>> >>>    gettext

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
> Avraham Adler > on Tue, 16 Nov 2021 02:35:56 + writes: > I am building r-devel on Windows 10 64bit using Jeroen's mingw system, > and I am finding that my make check-devel hangs on the above issue. > Everything is vanila except that I am using OpenBLAS 0.3.18. I have

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
> Duncan Murdoch > on Mon, 15 Nov 2021 13:06:23 -0500 writes: > I'd recommend responding now with a pointer to that bug > report: whoever at CRAN is dealing with your package > doesn't necessarily know about the bug report. You might > or might not need to make a chan

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

2021-11-21 Thread Martin Maechler
> Mikael Jagan > on Wed, 17 Nov 2021 17:01:00 -0500 writes: >> This seems entirely avoidable, given that there is a relatively simple >> formula for converting 2-ary indices [i,j] of S to 1-ary indices k of >> S[lower.tri(S, TRUE)]: >> >> k <- i + round(0.5 * (2

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

2021-11-24 Thread Martin Maechler
l it from R-forge install.packages("DPQ", type = "source", repos="http://R-Forge.R-project.org";) and then experiment? I'd be grateful {and we maybe can move "off - mailing list"} Thank you in advance, Martin Martin Maechler ET

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
> Matthias Gondan > on Wed, 8 Dec 2021 19:37:09 +0100 writes: > Dear R developers, > I have seen that plogis silently ignores vector elements of lower.tail, and also of 'log'. This is indeed the case for all d*, p*, q* functions. Yes, this has been on purpose and therefore d

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
riate topics for this R-devel mailing list. Best, Martin --- Martin Maechler ETH Zurich and R Core (and original creator of R-help, R-devel, .. lists) > [1] https://stat.ethz.ch/mailman/listinfo/r-package-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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

2021-12-16 Thread Martin Maechler
> Frederick Eaton > on Wed, 15 Dec 2021 20:09:46 -0800 writes: > Just following up to check if anyone has had time to look over these patches. > Frederick I strongly guess that nobody has. Let me give you my perception of what you have tried to propose/use, and why I hadn'

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
> Ben Bolker > on Mon, 27 Dec 2021 09:43:42 -0500 writes: >I agree that it seems non-intuitive (I can't think of a > design reason for it to look this way), but I'd like to > stress that it's *not* an information leak; the > predictions of the model are independent

Re: [Rd] trivial typo in NEWS file

2022-01-03 Thread Martin Maechler
> Ben Bolker > on Mon, 3 Jan 2022 11:04:48 -0500 writes: > Index: doc/NEWS.Rd > === > --- doc/NEWS.Rd (revision 81435) > +++ doc/NEWS.Rd (working copy) > @@ -425,7 +425,7 @@ > data frames with

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

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
> Ben Bolker on Sun, 9 Jan 2022 16:39:43 -0500 writes: >There was some discussion on twitter about the fact > that the manual page for as.formula() doesn't mention > reformulate(), and indeed the last example is > ## Create a formula for a model with a large number of > variables: xnam

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

2022-02-03 Thread Martin Maechler
> Ben Bolker > on Tue, 1 Feb 2022 21:21:46 -0500 writes: > The model.weights() and model.offset() functions from the 'stats' > package index possibly-missing elements of a data frame via $, e.g. > x$"(offset)" > x$"(weights)" > This returns NULL without comment

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

2022-02-09 Thread Martin Maechler
> Kurt Hornik > on Mon, 31 Jan 2022 09:29:22 +0100 writes: > Duncan Murdoch writes: >> Okay, I spotted it. This is intentional. From ?rbind.data.frame: >> "The rbind data frame method first drops all zero-column and zero-row >> arguments." > Hmm. "As documente

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

2022-02-12 Thread Martin Maechler
> Dipterix Wang > on Fri, 11 Feb 2022 06:55:44 -0500 writes: > Hi, > str2lang("") raises an error in current version. on purpose. > Would it > be good if it returns a missing value expression? Well, others may be able to better explain why "the empty name" aka yo

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
> Lluís Revilla > on Tue, 12 Apr 2022 09:16:36 +0200 writes: > Hi all, > This change is documented on the man page so I think it is intentional. yes, also if you look at the (svn) log messages of the code changes (or its git mirrors). >> From https://search.r-project.org

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
t() but not for as.POSIXlt() is also an inconsistency. My personal inclination would still be to do the change, by giving most weight to '1)' above. What do other experienced R developers think ? Martin > Am 17.05.2018 um 19:55 schrieb Martin Maechler:

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
> 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

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
> Davis Vaughan > on Wed, 5 Oct 2022 17:04:11 -0400 writes: > Hi all, > I think I have discovered a bug in the conversion from POSIXlt to Date that > has been introduced in r-devel. > It affects lubridate, but surprisingly didn't cause test failures there. > Ins

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
t variable, where I have noticed [on Linux, Fedora 36] that there may be different behavior between TZ entirely undefined and a TZ="" setting (which I intuitively assumed would work equivalently). Best, Martin > -Davis > On Fri, Oct 7, 2022 at 8:52 AM Martin Maec

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

2022-10-12 Thread Martin Maechler
> Kurt Hornik > on Tue, 11 Oct 2022 16:44:13 +0200 writes: > Davis Vaughan writes: >> I've got a bit more information about this one. It seems like it >> (only? not sure) appears when `TZ = "UTC"`, which is why I didn't see >> it before on my Mac, which defaults to `TZ

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

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

2022-10-22 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Tue, 18 Oct 2022 10:56:25 +0200 writes: >>>>> Suharto Anggono Suharto Anggono via R-devel >>>>> on Fri, 14 Oct 2022 16:21:14 + (UTC) writes: >> I think '[.POSIXlt' and &#

Re: [Rd] R blog link on developer page

2022-11-09 Thread Martin Maechler
> tim taylor > on Tue, 8 Nov 2022 21:55:29 + (GMT) writes: > The link to the R blog on https://developer.r-project.org/ currently points to the old site (https://developer.r-project.org/Blog/public). Should the link be updated to the new location (https://blog.r-project.org/

Re: [Rd] Shouldn't "Loading" be "Attaching" when referring to library() calls?

2023-01-10 Thread Martin Maechler
> Michael Chirico via R-devel > on Mon, 9 Jan 2023 12:25:46 -0800 writes: > require() and library() both emit this message immediately before > running library(): > "Loading required package: %s" > https://github.com/r-devel/r-svn/blob/4198a2941b702d965bb2374c2b908f

Re: [Rd] Shouldn't "Loading" be "Attaching" when referring to library() calls?

2023-01-10 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Tue, 10 Jan 2023 10:26:53 +0100 writes: >>>>> Michael Chirico via R-devel >>>>> on Mon, 9 Jan 2023 12:25:46 -0800 writes: >> require() and library() both emit this message immediately

Re: [Rd] Bug or feature?

2023-01-17 Thread Martin Maechler
vs se.fit=TRUE In the mean time, you have filed a new bugzilla isse about this, https://bugs.r-project.org/show_bug.cgi?id=18456 so we (and everyone interested) will continue the discussion there. Thank you for contributing to make R better by this! Best regards, Martin > -- >

Re: [Rd] memory leak in png()

2023-01-17 Thread Martin Maechler
ocairo-1.0.so.0 libpango-1.0.so.0 {as they are stripped, I don't know how to check } To *fix* this I also have to defer to others. Thank you for the report, Martin -- Martin Maechler ETH Zurich and R Core team > For some context, I am running R4.2.2. My goal was to run valgrin

Re: [Rd] memory leak in png()

2023-01-17 Thread Martin Maechler
Note that cairo_pdf() also suffers from the same leak .. as to be expected once you notice that much of the cairo device handling uses common code. ... .. and then, when you are aware that on Linux, the default interactive device is x11() and its default type is *also* "cairo" { possibly not on

Re: [Rd] memory leak in png()

2023-01-17 Thread Martin Maechler
> Tim Taylor > on Tue, 17 Jan 2023 13:39:01 + writes: > On 17/01/2023 13:06, Duncan Murdoch wrote: >> I don't have a valgrind-capable version of R, but I'd be interested to >> see whether this is a one-time loss, or repeated.  That is, do you get a >> much bigger

Re: [Rd] Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '' if an environment variable contains \xFF

2023-01-31 Thread Martin Maechler
> Tomas Kalibera > on Tue, 31 Jan 2023 10:53:21 +0100 writes: > On 1/31/23 09:48, Ivan Krylov wrote: >> Can we use the "bytes" encoding for such environment variables invalid >> in the current locale? The following patch preserves CE_NATIVE for >> strings valid in the

Re: [Rd] uniroot violates bounds?

2023-02-20 Thread Martin Maechler
> Serguei Sokol via R-devel > on Mon, 20 Feb 2023 10:59:22 +0100 writes: > Le 18/02/2023 à 21:44, J C Nash a écrit : >> I wrote first cut at unirootR for Martin M and he revised and put in >> Rmpfr. >> >> The following extends Ben's example, but adds the unirootR

Re: [Rd] uniroot violates bounds?

2023-02-22 Thread Martin Maechler
>>>>> Martin Maechler on Mon, 20 Feb 2023 19:25:02 +0100 writes: >>>>> Serguei Sokol via R-devel >>>>> on Mon, 20 Feb 2023 10:59:22 +0100 writes: >> Le 18/02/2023 à 21:44, J C Nash a écrit : >>> I wrote first cut at u

Re: [Rd] Compilation Error when DEBUG_approx Toggled on in RISC-V

2023-02-24 Thread Martin Maechler
> Jane He > on Thu, 23 Feb 2023 15:33:23 -0800 writes: > Hi all, > While compiling R to RISC-V64 architecture and debugging in R's C source > codes, I think I have found a small bug. Can anyone please verify whether > it is a real bug? > The possible bug lies in

Re: [Rd] transform.data.frame() ignores unnamed arguments when no named argument is provided

2023-03-03 Thread Martin Maechler
debugging is often not really feasible anyway ..), but somewhat experienced useRs should know about options(warn = 1) # or options(warn = 2) # plus options(error = recover) # or tryCatch( ..., warning = ..) or {even more} 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] confusing all.equal output

2023-03-03 Thread Martin Maechler
>>>>> peter dalgaard >>>>> on Thu, 2 Mar 2023 19:47:59 +0100 writes: > I believe the wording goes back to Martin Maechler many > moons ago (AFAICT towards the end of the last millennium.) > We might leave it to him to change it? > -

Re: [Rd] Multiple Assignment built into the R Interpreter?

2023-03-14 Thread Martin Maechler
> Sebastian Martin Krantz > on Sat, 11 Mar 2023 11:04:54 +0200 writes: [] > But maybe this has already been discussed here and already > decided against. In that case, a way to browse R-devel > archives to find out would be nice. > Best regards, > Se

Re: [Rd] make file.rename return invisible

2023-03-24 Thread Martin Maechler
e that very safe use (in scripts run automatically, ..) should happen inside if (!file.rename(a,b)) stop("Could not successfully rename ", a, " to ", b) anyway... and indeed it's much much less confusing for people debugging such code that functions behave normally,

Re: [Rd] Query: Could documentation include modernized references?

2023-03-31 Thread Martin Maechler
es and > responding to their requests. And maybe don't do any > until you hear from a member of R Core that they're > willing to participate in this, because they certainly > don't accept all suggestions. > Dunca

Re: [Rd] Error message for infinite probability parameters in rbinom() and rmultinom()

2023-04-08 Thread Martin Maechler
> Christophe Dutang > on Sat, 8 Apr 2023 14:21:53 +0200 writes: > Dear all, > Using rmultinom() in a stochastic model, I found this function returns an error message 'NA in probability' for an infinite probability. > Maybe, a more precise message will be helpful when d

Re: [Rd] Confusion about ks.test() handling of ties and exact vs approximate results

2023-04-21 Thread Martin Maechler
> Karolis Koncevičius > on Fri, 21 Apr 2023 11:32:41 +0300 writes: > Hello, > Today I was investigating ks.test() with two numerical arguments (x and y) and was left a bit confused about the policy behind handling ties. > I might be missing something, so sorry in advance

Re: [Rd] Possible inconsistency between `as.complex(NA_real_)` and the docs

2023-04-22 Thread Martin Maechler
> Hi all, > > Surprisingly (at least to me), `as.complex(NA_real_)` results in > `complex(real = NA_real_, imaginary = 0)` rather than `NA_complex_`. Well, the logic here is really the mathematical equivalence: if you turn a real number x in to a complex one, say z, then z = x + i * 0 , i.e.

Re: [Rd] range() for Date and POSIXct could respect `finite = TRUE`

2023-04-29 Thread Martin Maechler
> Davis Vaughan via R-devel > on Fri, 28 Apr 2023 11:12:27 -0400 writes: > Hi all, > I noticed that `range.default()` has a nice `finite = > TRUE` argument, but it doesn't actually apply to Date or > POSIXct due to how `is.numeric()` works. Well, I think it would / s

Re: [Rd] save.image Non-responsive to Interrupt

2023-05-02 Thread Martin Maechler
> Ivan Krylov > on Tue, 2 May 2023 14:59:36 +0300 writes: > В Sat, 29 Apr 2023 00:00:02 + > Dario Strbenac via R-devel пишет: >> Could save.image() be redesigned so that it promptly responds to >> Ctrl+C? It prevents the command line from being used for a number

Re: [Rd] range() for Date and POSIXct could respect `finite = TRUE`

2023-05-04 Thread Martin Maechler
m() to be used by implementors of other numeric-like classes to provide their own range() method as a 1-liner *and* be future-consistent with the default method.. > On Sat, Apr 29, 2023 at 4:47 PM Martin Maechler > wrote: >> >> >>>>> Davis Vaug

Re: [Rd] save.image Non-responsive to Interrupt

2023-05-05 Thread Martin Maechler
sider what > >> happens when an interrupt happens. For example, transfers >> between a > client and a server are no longer atomic at >> this level, which means we > might end up in a corrupt >> state. This may, for instance, happen to > database

Re: [Rd] range() for Date and POSIXct could respect `finite = TRUE`

2023-05-11 Thread Martin Maechler
ength length(x) .. which is TRUE where x[i] is not NA/NaN/+Inf/-Inf .. *and* is.infinite := Negate(is.finite){or vice versa if you prefer}. I agree that this may be useful somewhat more generally than just for range() methods. What do others think? Martin > On Thu, May 4, 2023 at 5:29

Re: [Rd] range() for Date and POSIXct could respect `finite = TRUE`

2023-05-19 Thread Martin Maechler
teger, character *and* raw, the latter really debatable - but *not* in this thread). So, allows.infinite(x) would *not* vectorize but return TRUE or FALSE (and typically not NA ..), in some sense being a property of class(x) only. > On Thu, May 11, 2023 at 1:49 AM Martin Maechler >

Re: [Rd] range() for Date and POSIXct could respect `finite = TRUE`

2023-05-22 Thread Martin Maechler
o in a somewhat smart way so that R developers of other similar classes could also easily make range(*, finite=TRUE) "work" for their class objects. Martin > On Fri, May 19, 2023 at 8:30 AM Martin Maechler > wrote: >> >>>>> Bill Dunlap

Re: [Rd] why does [A-Z] include 'T' in an Estonian locale?

2023-06-01 Thread Martin Maechler
> Ben Bolker > on Tue, 30 May 2023 11:45:20 -0400 writes: > Inspired by this old Stack Overflow question > https://stackoverflow.com/questions/19765610/when-does-locale-affect-rs-regular-expressions > I was wondering why this is TRUE: > Sys.setlocale("LC_ALL", "et_

Re: [Rd] bug in na.contiguous? Doesn't give the first tied stretch if it is at the start

2023-06-02 Thread Martin Maechler
> Georgi Boshnakov > on Thu, 1 Jun 2023 22:00:39 + writes: > Hi. > The description of na.contiguous says: > "Find the longest consecutive stretch of non-missing values in a > time series object. (In the event of a tie, the first such > stretch.)" > But t

Re: [Rd] infelicity in `na.print = ""` for numeric columns of data frames/formatting numeric values

2023-06-05 Thread Martin Maechler
> Ben Bolker > on Sat, 3 Jun 2023 13:06:41 -0400 writes: > format(c(1:2, NA)) gives the last value as "NA" rather than > preserving it as NA, even if na.encode = FALSE (which does the > 'expected' thing for character vectors, but not numeric vectors). > This was alr

Re: [Rd] codetools wrongly complains about lazy evaluation in S4 methods

2023-06-16 Thread Martin Maechler
> Mikael Jagan > on Thu, 15 Jun 2023 22:00:45 -0400 writes: > On 2023-06-15 5:25 pm, Hervé Pagès wrote: >> Oh but I see now that you've already tried this in your >> R/AllGenerics.R, sorry for missing that, yes, this one: setGeneric("qr.X", function(qr, c

Re: [Rd] codetools wrongly complains about lazy evaluation in S4 methods

2023-06-21 Thread Martin Maechler
>>>>> Martin Maechler >>>>> on Fri, 16 Jun 2023 11:41:12 +0200 writes: >>>>> Mikael Jagan >>>>> on Thu, 15 Jun 2023 22:00:45 -0400 writes: >> On 2023-06-15 5:25 pm, Hervé Pagès wrote: >>> Oh but I see no

Re: [Rd] Installation of R-4.3.1 with intel 2022

2023-06-21 Thread Martin Maechler
ile e.g. giving us the last 20 lines or so, e.g. from tail -n 20 /juno/opt/sources/R/R-4.3.1-intel21/tests/d-p-q-r-tst-2.Rout.fail Also, in addition to the output of sessionInfo(), the output of str(.Machine) maybe interesting. Once I'd see these, I might have to ask fur

Re: [Rd] Installation of R-4.3.1 with intel 2022

2023-06-22 Thread Martin Maechler
t; $ sizeof.longlong : int 8 > $ sizeof.longdouble: int 16 > $ sizeof.pointer : int 8 > $ sizeof.time_t: int 8 > $ longdouble.eps : num 1.08e-19 > $ longdouble.neg.eps : num 5.42e-20 > $ longdouble.digits

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