How can I get R and RApache installed in XAMPP for Windows?
I'm new to XAMPP, unix, and server environments. I've googled around but can't find much on putting this PHP, XAMPP, Windows and R combination together.
I'm trying to write a webpage that passes variables to R via the PHP exec() function. The eventual user wants ggvis plots on the arguments, so R is necessary.
I'm running XAMPP on Windows 8.1. The base installation works fine, but I'm stuck at passing variables with exec() because I don't have R or RApache installed in my XAMPP environment, although I have R in my Windows environment.
I have tried the rApache installation instructions.
Running
'sudo apt-get install devscripts git' on the shell returns the error
'sudo' is not recognized as an internal or external command, operable program or batch file.'
The error
sudo is not recognized as an internal or external command, operable program or batch file is because, you are trying to run Linux command on window shell ( command prompt). I don't think it is possible to integrate R, Apache, MySQL, PHP on XAMPP. I am curious myself to learn more if someone have new solutions. However, as you mentioned in the comment, the path to the R script is all that is needed to useexec. Here is a working R scriptphp/html script
R-Script
However, I am interested to know if there are any updated packages from R or modules from php to integrate R and PHP. Any experts who can update on this topic ?