Skip to content

Wishlist: 'quietly' argument for .onAttach() / .First.lib()

2 messages · Peter Ruckdeschel, Brian Ripley

#
Andy Liaw wrote:
sorry, but I did not find anything on it ---
probably I searched for the wrong keywords.
Couldn't a reasonable default value (probably FALSE ) catch this?
oK this is an issue --- no idea for this.
This is probably the cleanest solution.
I completely agree as to package version information
and pointers to NEWS / more information on the package.

My wish is motivated by something else ---  call it
 
           /"scalable start-up message"/

In a discussion with Martin Maechler, he proposed to alert/warn
the user in some prominent place about the interpretation of
arithmetics operating on distributions in our package "distr".

I have been thinking about this "prominent place" for some time
and found that an .onAttach() message might be the right place.

A user, however, who is already used to this interpretation, will soon
find this (extended) start-up message annoying and will want to
suppress it.

I could do this with a "hand-made" option but thought this might
be of more general interest.

Thank you for your attention,
Peter
#
On Thu, 13 Apr 2006, Peter Ruckdeschel wrote:

            
No. The problem is the other way round: if we arrange to call 
.onLoad(libname, pkgname, quietly), MASS will throw an error about an 
unmatched argument in its .onLoad, and similarly for hundreds of packages.
It's an API change, one of a magnitude that we would only contemplate for
R 3.x.y.