Re: [請益] 用PHP呼叫R
※ 引述《chien54776 (透明)》之銘言:
: system(R);
: system(source("file"));
: system(plot(dataset,input_file,output_file));
system("R"); <== 命令要加引號
另外你可以試試
system("R < command.txt");
command.txt 文字檔內容放入兩行,
==============================================
source("file")
plot(dataset,input_file,output_file)
==============================================
(或者3行,第3行空白,確保有兩個換行字元
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.87.69.204
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章