One way to do this is with Rscript.  If you want Perl because it can
handle cgi, then CGIwithR is also useful.  You can call Rscript from
Perl, but you can also do the reverse (with "system()") and have your
Rscript be the main routine.

Jon

On 03/30/10 10:19, Ayush Raman wrote:
> Hi all,
> 
> I am interested to know that how it is possible to call R from Perl. I would
> like to read the file in Perl, store it in a data structure and would like
> to pass the data structure to R so that I can do the mathematical operations
> easily.
> 
> Thanks.
> 
> -- 
> Regards,
> Ayush Raman

-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron

______________________________________________
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.

Reply via email to