The hook function hook_pdfcrop() also works on PNG images, although the function name is somehow misleading. The requirement is that you have ImageMagick installed and the command 'convert' is in your PATH. It is a contribution from @r2d3 https://github.com/yihui/knitr/issues/209#issuecomment-5266580
Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, May 25, 2012 at 4:16 PM, Alexander Shenkin <ashen...@ufl.edu> wrote: > Thanks Yihui, > > That's a great idea, and comes close to the mark, except that I have to > use png's in order to "Insert & Link" them as pictures in Word (and > hence make the doc both shareable and update when new figures are > generated). > > thanks, > allie ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.