[ESS] Graphics in emacs window: how to copy R screen devices in non-interactive sessions (remotes)

Yihui Xie xie at yihui.name
Tue Nov 19 03:27:53 CET 2013

Evaluate captures plots after each R expression, *and* in the plot
hooks persp, before.plot.new, and before.grid.newpage:
https://github.com/hadley/evaluate/blob/master/R/eval.r#L106-L109 I'm
not aware what else plots can escape under this circumstance, given
several bug reports in knitr/evaluate in the past. Besides, you do not
want to capture all the display lists, because some are actually
"empty", and you have to filter them out, which is also knitr/evaluate
does (and I admit it is hackish).

Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

On Mon, Nov 18, 2013 at 8:19 PM, Vitalie Spinu <spinuvit at gmail.com> wrote:
>  >>> Yihui Xie on Mon, 18 Nov 2013 19:47:01 -0600 wrote:
>  > Are you trying to reinvent the evaluate package? :)
>  > http://cran.r-project.org/package=evaluate I think what you described
>  > are basically what we did in evaluate:
>  > https://github.com/hadley/evaluate/blob/master/R/eval.r
> I think it is a bit different. I don't want to capture the device each
> time an user send a command, but would like to catch the actual plotting
> event, and then save into a file and re-display in emacs.
> I admit I don't fully understand how evaluate works and how it might
> help with the problem. Evaluate seems to capture only the new.plot
> events which is not enough for what we need.
>    Vitalie

More information about the ESS-help mailing list