Re: [Rd] .onLoad, packageStartupMessage, and R CMD check

2021-11-05 Thread Michael Chirico via R-devel
Examining more closely, it's a NOTE produced by R CMD check -- originally I had thought it was a WARNING, which I think would have been too strong for this case. A NOTE actually seems fine, on second thought. For a tiny bit of context, it's common for us to issue messaging around some state

Re: [Rd] .onLoad, packageStartupMessage, and R CMD check

2021-11-04 Thread Gabriel Becker
Hi Michael, Indeed, just to elaborate further on what I believe Duncan's point is, can you give any examples, "dire" or not, that are appropriate when the package is loaded but not attached (ie none of its symbols are visible to the user without using :::)? The only things I can think of are a

Re: [Rd] .onLoad, packageStartupMessage, and R CMD check

2021-11-04 Thread Duncan Murdoch
On 04/11/2021 2:50 p.m., Michael Chirico via R-devel wrote: I wrote a linter to stop users from using packageStartupMessage() in their .onLoad() hook because of the R CMD check warning it triggers: