Hi all,

You can do it with 'plr' language in postgresql with R language and
the command Sweave():

CREATE OR REPLACE FUNCTION f_graph() RETURNS text AS
$BODY$
pdf(''/tmp/myplot.pdf'');
plot(cars);
dev.off();
print(''done'');
$BODY$
LANGUAGE plr;

CREATE OR REPLACE FUNCTION f_sweave() RETURNS text AS
$BODY$
setwd("/tmp");
Sweave(/tmp/file.Rnw");
system("pdflatex /tmp/file.tex");
print(''done'');
$BODY$
LANGUAGE plr;

On 2 jan, 22:21, Cédric Krier <[email protected]> wrote:
> This is technical question. It should go on tryton-dev mailing list.
>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: [email protected]
> Website:http://www.b2ck.com/
>
>  application_pgp-signature_part
> < 1 000AfficherTélécharger

-- 
[email protected] mailing list

Reply via email to