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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...