[R] CGI and RSPerl
Nolwenn Le Meur
nolwenn.lemeur at nantes.inserm.fr
Wed Oct 16 14:40:07 CEST 2002
Hi,
Does anybody try to write CGI script using RSPerl package ?
I am interested in RWeb but that doesn't really do what I want.
In fact I would like the user to load the file to analyze; then a R program
will treat the data ,display resulting graphs and save results in text
files.
I have test the following script by John Barnett without success.
#!/usr/lib/R/bin/R.bin --source
invisible(library(RSPerl));
foo <- .PerlExpr("use CGI;");
foo <- .PerlExpr("$q = new CGI; 1;");
a <- .PerlExpr("$q->param('a')");
cat(.PerlExpr("$q->header . $q->start_html . 'Hellooooo....';"),
a,
.PerlExpr("$q->end_html"));
I get the error:
premature end of script headers : /var/www/cgi-bin/test.cgi
Thanks to help,
Nolwenn
********************************************
Nolwenn Le Meur
INSERM U533
Faculté de médecine
1, rue Gaston Veil
44035 Nantes Cedex 1
France
Tel: (+33)-2-40-41-29-86 (office)
(+33)-2-40-41-28-44 (secretary)
Fax: (+33)-2-40-41-29-50
mail: nolwenn.lemeur at nantes.inserm.fr
********************************************
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list