[R] try() with silent=TRUE not preventing printing of error message

Benjamin Tyner btyner at gmail.com
Wed Jan 11 02:56:25 CET 2012


Hello,

We're curious to know why, on builds lacking Tcl/Tk,

    try(library(tcltk),silent=TRUE)

still allows the message to be printed:

    Error in firstlib(which.lib.loc, package) :
      Tcl/Tk support is not available on this system

though it does succeed in trapping the error condition?

Thanks,
Ben



More information about the R-help mailing list