All Apps and Add-ons

How to install R Analytics on Windows?

Explorer

Kind of answer to my question: On Windows the App also runs (partially?) as follows: Install latest R-Studio, there Tools > Install Packages: OpenCPU, then run the R command: opencpu::opencpu$start(). It should give an output like
Creating new config file: C:/Users/username/Documents/.opencpu.conf
OpenCPU started.
[httpuv] http://localhost:4711/ocpu

In the R-Analytics App specify only the base URL, here
http://localhost:4711

Now the example
http://localhost:8000/de-DE/app/ita_r/r_script
works including R-graphics.
So far the Demo views did not display anything. Any ideas for troubleshooting here?
Thanks!

0 Karma

Explorer

Here at least formally and partially my self answered question: How to install R Analytics on Windows:

  1. Install R Studio https://www.rstudio.com/products/rstudio/download/ (I have not tried plain R)
  2. Start R Studio and enter the command: install.packages("opencpu")
  3. enter the command: opencpu::ocpustartserver(). Note the output will display more than the base URL
  4. Optional: check that the OpenCPU server is up by browsing to something like http://localhost:4711/ocpu
  5. Install the R-Analytics App for Splunk
  6. Restart Splunk
  7. In the Splunk Web: Open the App and configure the base URL, like http://localhost:4711
  8. Now for me http://localhost:8000/de-DE/app/ita_r/r_script works including R-graphics
0 Karma

Communicator

Thanks for trying this on Windows! Your setup seems fine and I don't really see why the demo is not working. Could you try to open the console of your browser to see if there are any errors? (F12 on chrome and firefox, then to the console tab)

0 Karma

Explorer

here is what I saw: Failed to load resource: the server responded with a status of 404 (Not Found)
There was a png link to: http://localhost:8000/de-DE/app/ita_r/400,0,there%20is%20no%20package%20called%20'corrplot'In%20call...

0 Karma