Skip to content
Prev 40516 / 63424 Next

How to add a welcome message in Package development?

On Jun 10, 2011, at 2:54 PM, Nipesh Bajaj wrote:

            
Personally, I find "welcome messages" extremely annoying, because if you load a dependency chain of 20 packages and each has something silly to say, you get pages of completely useless output (since you can't read all of them anyway) that tend to interfere with automated scripts. Also anything people tend to say in those is pertinent only once (when the user first sees the message) so the message is pointless most of the time that it's shown. But that's just my opinion.

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).

Cheers,
Simon