From edd at debian.org  Fri Jun 10 22:13:17 2011
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri, 10 Jun 2011 15:13:17 -0500
Subject: [Rd] How to add a welcome message in Package development?
In-Reply-To: <7A15D454-E03A-442B-9912-83EDEABEDA93@r-project.org>
References: <BANLkTikFL8LuPkX6SSEp-yNqNhYpt-zrWg@mail.gmail.com>
	<EC3D7B97-9AAD-4626-BC5E-3372344AB155@r-project.org>
	<19954.29221.228372.585633@max.nulle.part>
	<7A15D454-E03A-442B-9912-83EDEABEDA93@r-project.org>
Message-ID: <19954.31453.458383.962582@max.nulle.part>


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

-- 
Gauss once played himself in a zero-sum game and won $50.
                      -- #11 at http://www.gaussfacts.com



[Rd] How to add a welcome message in Package development?
Dirk Eddelbuettel