[R-pkgs] Package animation update 2.0-1

From: Yihui Xie <xie_at_yihui.name>
Date: Mon, 10 Jan 2011 16:59:07 -0600


The package animation 2.0-1 is on CRAN now (http://cran.r-project.org/package=animation).

                 CHANGES IN animation VERSION 2.0-1

   o demo('Xmas_card') contributed by Yuan Huang

   o demo('flowers') to show how to download images from the Internet
 and create an animation

   o a new function pdftk() as a wrapper to call the Pdftk toolkit
 (mainly for compressing PDF graphics output)

   o saveLatex(), saveSWF() and saveMovie() can compress the PDF
 graphics using Pdftk (if available) now; if ani.options('ani.type')
 is 'pdf' and the 'pdftk' option is set, these functions will try the
 compression first

   o new functions ani.record() and ani.replay() to record and replay
 the animations; they can be used to capture the changes in the
 graphics made by low-level plotting commands (see ?ani.record for

   o the function tidy.source() was completely removed from this
 package; users should go to the formatR package (tidy.source() is
 there now)

   o the argument 'expr' in saveHTML(), saveLatex(), saveMovie() and
 saveSWF() will be evaluated by eval(), so we may pass a real R
 expression (see ?expression) to 'expr', e.g. saveHTML(expression(for
 (i in 1:10) plot(runif(30)))); but note this argument does not *have
 to* be a real R expression -- you can still use an arbitrary R code
 chunk, e.g. saveHTML(for (i in 1:10) plot(runif(30))) (thanks,


Yihui Xie <xieyihui_at_gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

R-packages mailing list
Received on Tue 11 Jan 2011 - 21:13:52 EST

This archive was generated by hypermail 2.2.0 : Tue 11 Jan 2011 - 21:20:02 EST