Using R through PHP

前端 未结 3 1115
无人共我
无人共我 2020-12-31 09:09

I\'m relatively new to R and very new to the Linux (Ubuntu) command line. I\'m trying to write a page in PHP that contains a command I would like to execute in R and then pa

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 09:40

    Couple of points:

    1. You want --slave as the option, it implies --no-save and turns the greeting off; see the manual for more.

    2. What you really want is Jeff Horner's excellent R-inside-Apache, see here for more. It can use templating frameworks like brew as well. Best of all, Jeff now provides a .deb package for you: use deb http://ppa.launchpad.net/jeffreyhorner/rapache/ubuntu lucid main in /etc/apt/sources.list.

    3. If you insist on piping from php, consider the littler scripting frontend Jeff and I wrote. It will start faster than R.

提交回复
热议问题