[R] Use of example()
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Oct 2 15:09:53 CEST 2000
Art Salwin <salwin at mitretek.org> writes:
> I've been using R for several months, and just learned
> that example(topic) runs the example R code given in the
> help file
> for that topic. Very nice feature! However, I have a
> question: when
> there's more than one example for a topic, each succeeding
> example
> overwrites the preceding ones on the screen, and so only the
> last
> one is visible. Is there a way to overcome this by having
> the examples
> execute only one at a time or by having them write to
> different output
> screens?
You mean the graphics? (In text mode, just use the scrollback feature
of your console or xterm - Shift-PgUp in the latter case)
Try setting par(ask=TRUE) and rerun the examples.
There's a reason for not making example() do that itself, namely that
it would fire up a graph window even for text-only example sections.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list