From jfox at mcmaster.ca  Sun Aug 29 16:28:16 2004
From: jfox at mcmaster.ca (John Fox)
Date: Sun Aug 29 16:28:18 2004
Subject: [Rd] Problem with Rcmdr Help menu under devel version of R 2.0.0
In-Reply-To: <Pine.LNX.4.44.0408291444490.2379-100000@gannet.stats>
Message-ID: <20040829142815.BPXJ7925.tomts25-srv.bellnexxia.net@JohnDesktop8300>

Dear Brian,

OK -- it's simple for me to replace all the calls to writeLines() in
print.help_files_with_topic() with calls to warning(), but since these are
warning messages, I don't see why the former is preferred to the latter
(though, of course, I may be missing something -- and, as you say, you
didn't write this code). Or is your point more general -- that I should have
a different generic print function? If so, how could I avoid writing new
print methods? (Again, perhaps there's a general solution here that I don't
see.)

Regards,
 John

> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk] 
> Sent: Sunday, August 29, 2004 8:46 AM
> To: John Fox
> Cc: r-devel@stat.math.ethz.ch
> Subject: RE: [Rd] Problem with Rcmdr Help menu under devel 
> version of R 2.0.0
> 
> John,
> 
> It's not my code but I think the intention is that you should 
> write your own print function for a GUI.
> 
> Brian
> 
> On Sun, 29 Aug 2004, John Fox wrote:
> 
> > Dear Brian,
> > 
> > Thank you very much for this -- I didn't grasp the 
> implication of the 
> > NEWS item.
> > 
> > I still have a small residual problem with respect to 
> notification of 
> > multiple matches, etc.: My normal procedure is to redirect 
> > informational messages from the console to tcltk message 
> boxes, but I 
> > can't figure out how to suppress console output of these 
> messages. If 
> > the messages were issued via warning() rather than writeLines() in 
> > print.help_files_with_topic(), I'd intercept them. Is there 
> a reason for bypassing warning()?
> > 
> > Again, thanks.
> >  John
> >


[Rd] Problem with Rcmdr Help menu under devel version of R 2.0.0
John Fox