Monday, September 14, 2015

Installing R External Packages


On the Statistics Server, go to the path where statistics engine is installed. 
In my case it is installed at below location:-

C:\Program Files\TIBCO\statsvcs65\SplusServer\engines\Terr\bin\x64

Open TERRconsole.exe and type below command
install.packages("XML")

In case, you would like to install the packages from Zip file downloaded from site http://cran.r-project.org then you can type the below command

install.packages(file.choose(), repos=NULL)

Verify the changes where all the external files are added to the below location or not.
C:\Program Files\TIBCO\statsvcs65\SplusServer\engines\Terr\library


For Spotfire Professional version, follow the similar steps by running Statistics Console command prompt from location  
C:\Program Files (x86)\TIBCO\Spotfire\6.5.0\Modules\TIBCO Enterprise Runtime for R_2.5.0.23\engine\bin\x64
                                                              (OR)
Copy the External library folder from Server to local machine library location (C:\Program Files (x86)\TIBCO\Spotfire\6.5.0\Modules\TIBCO Enterprise Runtime for R_2.5.0.23\engine\library)

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



No comments:

Post a Comment