[Rd] How to add a welcome message in Package development?
Dirk Eddelbuettel
edd at debian.org
Fri Jun 10 22:13:17 CEST 2011
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
More information about the R-devel
mailing list