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

2021-08-10 Thread Martin Maechler
> Simon Urbanek > on Tue, 10 Aug 2021 11:28:19 +1200 writes: > Barry, > it is not a warning nor plain output, it is a message, so you can use >> d = data.frame(x=1:10) >> x=1 >> suppressMessages(attach(d)) >> > Looking at the history, this used to be c

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

2021-08-09 Thread Simon Urbanek
Barry, it is not a warning nor plain output, it is a message, so you can use > d = data.frame(x=1:10) > x=1 > suppressMessages(attach(d)) > 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 warni

[Rd] attach "warning" is a message

2021-08-09 Thread Barry Rowlingson
If I mask something via `attach`: > d = data.frame(x=1:10) > x=1 > attach(d) The following object is masked _by_ .GlobalEnv: x > I get that message. The documentation for `attach` uses the phrase "warnings", although the message isn't coming from `warning()`: warn.conflicts: logical. If ‘T