Re: [Rd] `dendrapply` Enhancements

2023-03-01 Thread Lakshman, Aidan H
Just wanted to give an update on the status of this, since it�s been a couple days and I�ve had a chance to work on it a little more. Improvements: - Fixed a few bugs, added some more robust checking to ensure correct checking for leaf nodes - Corrected references to �in-order� traversals, I act

Re: [Rd] tab-complete for non-syntactic names could attempt backtick-wrapping

2023-03-01 Thread Michael Chirico via R-devel
Great suggestion! I've started a patch: https://bugs.r-project.org/show_bug.cgi?id=18479 On Wed, Mar 1, 2023 at 1:56 AM Ivan Krylov wrote: > > В Wed, 1 Mar 2023 01:36:02 -0800 > Michael Chirico via R-devel пишет: > > > +comps[non_syntactic] <- paste0("`", comps[non_syntactic], "`") > > There are

[Rd] confusing all.equal output

2023-03-01 Thread Antoine Fabri
dear r-devel, This has probably been forever like this but is this satisfying ? all.equal(c(1,NA,NA), c(1,NA,3)) #> [1] "'is.NA' value mismatch: 1 in current 2 in target" is.NA() doesn't exist (is.na() does), and is.na() is never 1 or 2. In this example it's obvious that we're counting missing

[Rd] R 4.2.3 scheduled for March 15

2023-03-01 Thread Peter Dalgaard via R-devel
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

[Rd] Incorrect behavior of ks.test and psmirnov functions with exact=TRUE

2023-03-01 Thread Alexey Sergushichev
HI, I've noticed what I think is an incorrect behavior of stats::psmirnov function and consequently of ks.test when run in an exact mode. For example: psmirnov(1, sizes=c(50, 50), z=1:100, two.sided = FALSE, lower.tail = F, exact=TRUE) produces 2.775558e-15 However, the exact value should be 1/

Re: [Rd] tab-complete for non-syntactic names could attempt backtick-wrapping

2023-03-01 Thread Ivan Krylov
В Wed, 1 Mar 2023 01:36:02 -0800 Michael Chirico via R-devel пишет: > +comps[non_syntactic] <- paste0("`", comps[non_syntactic], "`") There are a few more corner cases. For example, comps could contain backticks (which should be escaped with backslashes) and backslashes (which should also be esc

[Rd] tab-complete for non-syntactic names could attempt backtick-wrapping

2023-03-01 Thread Michael Chirico via R-devel
Consider: x <- list(`a b` = 1) x$a (i.e., press the 'tab' key after typing 'x$a') The auto-complete mechanism will fill the buffer like so: x$a b This is not particularly helpful because this is now a syntax error. It seems to me there's a simple fix -- in utils:::specialCompletions(), we can