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
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...