From p.murrell at auckland.ac.nz  Wed Sep  8 03:11:10 2010
From: p.murrell at auckland.ac.nz (Paul Murrell)
Date: Wed, 08 Sep 2010 13:11:10 +1200
Subject: [Rd] what is the best way for an external interface to interact
 with graphics, libraries
In-Reply-To: <E4390BF3-5D29-49FB-92A3-AF859440FC24@r-project.org>
References: <1283883710896-2530208.post@n4.nabble.com>	<B6FE3EE8-69FD-4E32-90B8-1065F8947026@r-project.org>	<1283886460100-2530256.post@n4.nabble.com>
	<E4390BF3-5D29-49FB-92A3-AF859440FC24@r-project.org>
Message-ID: <4C86E2AE.8030003@auckland.ac.nz>

Hi

On 8/09/2010 9:23 a.m., Simon Urbanek wrote:
>
> On Sep 7, 2010, at 3:07 PM, ghostwheel wrote:
>
>>
>>
>> Simon Urbanek wrote:
>>>
>>>
>>> I don't know the mechanics of the actual "inserting" in TeXmac but it
>>> would be trivial to simply create a copy of the plot as EPS (or whatever
>>> is needed) at the time of insertion. See dev.copy2eps() for a function
>>> that does exactly that.
>>>
>>>
>>
>> Great. It works much better than my recordPlot() hack. But it seems to only
>> work for 'screen devices'. I'd like to be able to work remotely without X11.
>> Is there any equivalent graphics device that would be copyable with
>> dev.copy2eps?  Is there any way to tell R give me whatever you have till now
>> in eps?
>>
>
> No (AFAIR PS devoice does not keep a display list).

PS device does not keep a display list *by default*.  You should be able 
to turn it on via ...

dev.control("enable")

Paul

> However, you can use any other device that uses a display list, e.g. CairoPS from the Cairo package (in fact any of the Cairo devices..).
>
> Cheers,
> Simon
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/



[Rd] what is the best way for an external interface to interact with graphics, libraries
Paul Murrell