Sunday, July 12, 2015

Spotfire Statistics Server Configuring with Open Source R


Before Downloading and Installing the R Open Source Engine on the machine, check for the Tibco Spotfire Statistics Requirements.

http://support.spotfire.com/sr_statservices70.asp



For Spotfire 6.5 Version, the highest supported version is 3.1.2.

Now we can go ahead and install R 3.1.2 from the Cran R project site

http://cran.r-project.org/bin/windows/base/old/3.1.2/


Steps:
- Install Tibco Statistics Server 6.5 (64 bit) on Server with engine as SPLUS or  TERR
- Install 64 bit Java JRE (jre1.8.0_45) on Statistics server machine.
- Run the below command from R console
     install.packages("rJava")

   R console location: [R location]\R-3.1.2\bin\x64

-  To verify whether rJava is successfully installed or not, run the below command and it shouldn't return any error message

  library(rJava)



 - Now, navigate to the folder [Tibco Statistics Server path]\statsvcs65\SplusServer\conf. 

 ex:-  C:\Program Files\TIBCO\statsvcs65\SplusServer\conf

- Open spserver.properties and look for engine.type and update the value to R.
     engine.type=R

- Now open the Command prompt using Run as Administration and go to Tibco Statistics Server bin location and run the command 
           TSSS65SplusServerw//ES/TSSS65SplusServer

 

- Then you would get below prompt window and Stop the service.





 - Go to Java -> Java Options and Add below entry to the list
         -Dspserver.rhome=C:\Program Files\R\R-3.0.2



 
 - Apply the changes and start the service

These are the settings/steps from Server side.


Now open the Spotfire Professional and go to Administrator Manager-> Preferences. Click on Everyone Group and give the Statistics server details accordingly as below.


 



 


Now we are all set to use R open :) 

PS: Try to test by writing some basic R scripts and run the same.







5 comments:

  1. Hello - So do these steps allow for Open Source R to be used in conjunction with TERR on TSSS? Or does TERR no longer work?

    ReplyDelete
  2. Hi Buddie,


    Thank you! Thank you! Thank you! Your blog was a total game changer!


    I have the following problem: if I make updates to one bookmark (e.g. add new visualisations), after several changes all my bookmarks default completely or
    partially to the same view
    , even though I click "Update bookmark" only on that specific one.
    It is a big issue because I have different device screen resolution views, so I have to recreate each one of them from scratch every time there're some changes.
    Is there a way to avoid this? I want bookmarks to keep their respective viz sizes when I add things.
    These bookmarks are becoming a nightmare in so many ways... The worst way to adapt device screens I've seen so far.





    Follow my new blog if you interested in just tag along me in any social media platforms!


    Thanks,
    Ajeeth Kapoor

    ReplyDelete
  3. Hello There,


    Nice to be visiting your blog again, it has been months for me. Well this article that Ive been waited for so long.

    I am creating a cross table report with order priority and sales value. I have to show the top 3 order priorities based on their total sum but the grand total shows the entire total of sales value which not expected one. I want to show the grand total of top 3 order priorities. How can I implement this one, tried a lot of workarounds but did not get expected one.

    Once again thanks for your tutorial.


    Obrigado,
    Stella

    ReplyDelete
  4. Hello There,

    Amaze! I have been looking bing for hours because of this and i also in the end think it is in this article! Maybe I recommend you something helps me all the time?

    In Web Player application, there is an attribute to logout a user on inactivity logout (inactivityTimeout - Spotfire.Dxp.Worker.Web.config).
    Unfortunately it only works in library browser. So, it doesn't work when an analysis is open or on an administrator page like "Users & Groups".
    Is it possible to have a global inactivity timeout function to logout a user when he does nothing during a period of time (ie. 15min)?
    Please note "Absolute session timeout" is not convinience for our users because they need to login every 15min.

    I look forward to see your next updates.

    Merci Beaucoup,
    Preethi

    ReplyDelete
  5. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.I want to share about tibco tutorial and tibco online training .

    ReplyDelete