Search code examples
ropencpu

Opencpu and R-statistics


I am wanting to use OpenCpu to do statistical web-based apps. BUT, the documentation I see on the web seems to be contradictory. Just trying to get started is difficult for a newbie. I hope someone knows how. I have seen some posts here on stackoverflow, and I still see contradictions. Note that I have used Rserve in java and Rpy2 in python, and these are wrappers to R-stats.

BUT on the website I see that they say that OpenCpu is an embedded engine using HTTP. I wish to install this OpenCpu on my local Ubuntu machine.

So my question is: (1)Does OpenCpu server contain some embedded version of R-statistics? SO the download contains everything i need. OR (2)does one have to install R-statistics separately and the OpenCpu server separately, so hence these are 2 separate applications that talk to one another over HTTP.

So you can see that I was not able to find this kind of fundamental starting knowledge on the web.


Solution

  • Doing apt-get install opencpu will automatically install R. Not because it is contained, but because it is declared as a dependency, so the package manager understands it needs R, apache, etc when it installs opencpu.