I've successfully built and installed OpenCPU and RStudio Server on a CentOS6. Everything is working as expected, and I do get successful GET/POST responses for my local R packages.
A couple of things that don't seem to work however:
- I can't figure a clean way to start/stop/flush OpenCPU. I'm currently using
apachectl restart
but I'm not even sure that does reload R packages as expected. I tried Jeroen's bash scripts at/usr/lib/opencpu/scripts
but they seem to require quite a bit of tweaking to work on CentOS. - (maybe related to above) I am using
load()
andreadRDS()
in/etc/opencpu/Renviron
file (also tried in/etc/opencpu/Rprofile
) to load persistent datasets into the global environment -- but that doesn't seem to work. I don't get any error log, but the objects are not available in subsequent requests. - on Ubuntu OpenCPU seems configured to run under an
opencpu
user. On CentOS6 it seems to run underroot
after installation. I'd like to modify that, but not sure how.
Just wondering if someone has has success configuring OpenCPU on CentOS6.
Many thanks, --Mel.