[R] Re: your mail (animation in R-Win)

Kjetil Halvorsen khal at alumni.uv.es
Sun Nov 29 18:20:17 CET 1998


I run into the same problem of getting animation to work on
R (gnuwin32), and asked G. Masarotto. He responded:

"About animation: graphics devices are updated only when something
is printed or some input is required. However, it is easy to force
updating: just print the null string when you want,i.e.,
in your case add the line
  cat("")
before the delay loop (at the end of Walk(...)).
I suppose that this is not completly satisfactory for more
complex animation. So, I have to rethink to the 
buffering of the graphich device. However, in this
example seems to work.
Let me to know what do you think about and thanks 
for pointing to the two problems.

g. "

By the way,  animation works in RJune. 

Kjetil Halvorsen


Prof Brian D Ripley wrote:
> 
> On Fri, 27 Nov 1998, Niels Waller wrote:
> 
> >
> > Dear friends,
> >
> > I am trying to port a collection of S-PLUS teaching functions over to R.
> > Several of my functions use animation.  Animation in S-PLUS is not ideal,
> > but can be accomplished with a call to guiLocator (this forces the program
> > to print to the graphsheet rather than wait until the function has completed
> > all calculations).   Does anyone know if there is a trick that will enable
> > me to accomplish the same thing in R (for Windows).
> 
> Here you are talking about S-PLUS 4.x. That `trick' is not needed on any
> other S-PLUS platform, not even on earlier versions of S-PLUS for Windows.
> Only with a graphsheet device in S-PLUS 4.x is (plot) output deferred.  I
> don't see it is relevant to R.
> 
> BTW, as we now many versions of R for Windows (and are about to have some
> more) could you please say which?
> 
> --
> 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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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