`drop = FALSE` 的行为是否在 R 版本 4 中被更改而文档没有注意到这一点?

Has the behavior of `drop = FALSE` been changed in R version 4 without the documentation making note of that?

忘记在需要的地方添加 drop = FALSE 是经典的 R 挫折之一。这个问题是众所周知的,Tibble 包有它的替代数据帧总是通过 drop = FALSE (example)。我所记得的关于 R 的一切都告诉我绝对肯定数据帧尊重 drop = FALSE。但是,如果我查看 [ (Extract {base}) 的文档,我发现它说:

drop For matrices and arrays.

值得注意的是,这没有提到数据帧。这是否表明 drop 最近已更改?我的直觉,在关于 tibbles 的超链接示例的支持下,坚持认为数据框尊重 drop 论点,但我再也找不到任何文档来支持这一点。

[ 是一个通用函数。您想要 [.data.frame (Extract.data.frame {base}) 的文档。

drop logical. If TRUE the result is coerced to the lowest possible dimension. The default is to drop if only one column is left, but not to drop if only one row is left.