All Apps and Add-ons

How to install R Analytics on Windows?

graether
Path Finder

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

graether
Path Finder

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::ocpu_start_server(). 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

gwobben
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

graether
Path Finder

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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Think Like an Architect: Introducing the Splunk Certified Cybersecurity Defense ...

In cybersecurity, defenders respond to threats. Architects design the systems that stop them.    As ...

Index This | What has goals but no motivation?

June 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Deep Dive: Accelerate threat investigation with Splunk’s AI Assistant in Security

AI is one of the biggest topics in the market today, and for security teams, its value goes far beyond the ...