On 08/28/2009 01:47 PM, Gábor Csárdi wrote:
On Fri, Aug 28, 2009 at 1:33 PM, Gabor
Grothendieck<ggrothendi...@gmail.com> wrote:
[...]
I could have used this functionality in a previous project as well; however,
for Oliver's application just pass the filename to the python program use that
in the<img src=...> tag (or have the python program pass the filename to
the R program).
If there is some aspect of this problem that has not been explained that
truly does make passing the graphic file contents to the python
program desirable
then have R write out the graphic file and then have R read it back in.
Unfortunately, this is not always a good solution. For example, I am
running Rserve with connections from untrusted users. The Rserve
process is not allowed to write to the disk at all, but then there is
no easy way to create plots.
The patch Romain mentioned above looks like a good solution.
Gabor
There is also the xGD package: http://www.rforge.net/xGD/
Instead of writing to a file, R drawing commands are sent to a TCP/IP
socket. There is an example of a java graphics server which you can use
to render the graph.
I would still like to have some connections API at the c level, for this
and other things ...
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/xkMc : Combine R CMD build and junit
|- http://tr.im/w33B : Completion for java objects
`- http://tr.im/vzip : Code Snippet : List of CRAN packages
______________________________________________
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.