Displaying 1 result from an estimated 1 matches for "ex_1".
Did you mean:
ex1
2009 Nov 11
0
Passing MULTIPLE arguments from php file to r scripts
...'t know how to pass multiple arguments from php file to r
scripts.
Please have a look at this link ; it gives a very simple explanation of
passing variables from a PHP page to r scipts.Because i have done the same
thing.
http://www.math.ncu.edu.tw/~chenwc/R_note/index.php?item=php&subitem=ex_1<http://www.math.ncu.edu.tw/%7Echenwc/R_note/index.php?item=php&subitem=ex_1>
*CONTENTS OF MY PHP FILE: ex_1.php*
<?php**
$cmd = "echo 'argv1 <- \"ex_1.R\"; source(argv1)' | " .
"/usr/bin/R --vanilla --slave ";
$ret = system($cmd);...