Skip to content
Prev 8312 / 63424 Next

silent option for library function

On Wed, 30 Oct 2002, Vincent J. Carey, Jr. wrote:

            
Don't think so.  From help(sink):

     Normal R output is diverted by the default `type = "output"'. Only
     prompts and warning/error messages continue to appear on the
     terminal. These too can diverted by `type = "message"' (see
     below).

and for example
Error in firstlib(which.lib.loc, package) :
        testing
Error in library(foo) : .First.lib failed
So how are you losing error messages?


BTW, there is no way for library() to control what a user does in his
.First.lib: he could put up a dialog box agreeing the usage terms.
Actually, that seems a rather good idea ....