[Plr-general] Devices don't start
frederick deslandes
frederick.deslandes at boreal-is.com
Tue Jun 23 15:47:45 UTC 2009
This works just fine from my linux installation [ note, the only change
> is the path given to pdf() ]
>
> CREATE OR REPLACE FUNCTION f_graph()
> RETURNS text AS
> $BODY$
> my_var <<- pg.spi.exec ('select x as "my a" ,y as "my b" from qa_r_graph
> order by x,y');
> pdf("/tmp/myplot.pdf");
> plot(my_var,type="l",main="Graphics Demonstration",sub="Line Graph");
> dev.off();
> print("done");
> $BODY$
> LANGUAGE 'plr' VOLATILE;
>
>
> Perhaps the issue is that C:/ needs to be escaped?
>
I found the problem. It seem that pl/r cannot write to C:/ under
windows Xp.( The R console can do it). So pdf("C:/myplot.pdf") won't
work while pdf("C:/myplots/myplot.pdf") will work ( I had to remove a
read-only property from the folder though)
Thanks for your help.
More information about the Plr-general
mailing list