Skip to content
Prev 40520 / 63424 Next

How to add a welcome message in Package development?

On 10 June 2011 at 16:04, Simon Urbanek wrote:
| On Jun 10, 2011, at 3:36 PM, Dirk Eddelbuettel wrote:
| > | That said, you can simply use cat() in .First.lib (if your packages has no namespace) or .onAttach or .onLoad (if your packages has a namespace).
| > 
| > No, not cat() --- please use   packageStartupMessage()   as that can actually 
| > be suppressed easily.
| > 
| 
| Thanks, very, very good point -- that many package authors did not get (I actually checked a few packages before replying and they all use cat() ... eek).

Yup :)  I have over the years contacted a few fellow package authors to get
this changes.  

Lots to do still.  Maybe R CMD check should look into .onLoad() et al?

Dirk