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

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Aug 29 16:30:33 CEST 2004


On Sun, 29 Aug 2004, John Fox wrote:

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

I think the intention is that you have a function say RcmdrShow, and 
write methods for that, with RcmdrShow.default calling print.

Brian

> 
> Regards,
>  John
> 
> > -----Original Message-----
> > From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
> > Sent: Sunday, August 29, 2004 8:46 AM
> > To: John Fox
> > Cc: r-devel at 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
> > > 
> 
> 

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list