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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 30 Aug 2004 - 00:30:33 EST


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@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
> > &gt; 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@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

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Aug 30 02:40:39 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:11 EST