Showing posts with label R. Show all posts
Showing posts with label R. Show all posts

Thursday, 22 February 2018

Unable to install R packages rgl & qpcR in sparkR

If you encounter such an error while installing the package rgl in sparkR

configure: using libpng dynamic linkage checking for X... no 
configure: error: X11 not found but required, 
configure aborted.

its because X11 is a windows library and to resolve use:
Ubuntu : 

sudo apt-get install libglu1-mesa-dev


Redhat:

sudo yum install mesa-libGL-devel mesa-libGLU-devel libpng-devel

Wednesday, 10 June 2015

Allow Rserve to be accessed from a remote machine

By default Rserve allows you to access the Rserve instance using localhost and port as 6311

This can be changed by creating a configuration file and specifying it as arguments to Rserve.
The configuration file is not present by default we will have to create one.
Create a file Rserv.cfg ( you can use any name doesnot matter)

Inside the Rserv.cfg
remote enable
port 6566
plaintext disable
R command to start Rserve
Rserve(args="--RS-conf D:\fakepath\Rserv.cfg")
replace absolute path in windows to the corresponding Linux equivalent. Have heard there is a config file in /etc/Rserve.conf( not sure though) if not create a new one.

This will take in the arguments specified in the cfg file
For more parameters and command line arguments for Rserve visit Rserve Documentation

Sunday, 17 May 2015

Maven Dependencies for rserve and rengine

<dependency>
  <groupId>org.rosuda.REngine</groupId>
  <artifactId>Rserve</artifactId>
  <version>1.8.1</version>
</dependency>

<dependency> 
  <groupId>org.rosuda.REngine</groupId>
  <artifactId>REngine</artifactId>
  <version>2.1.0</version>
</dependency>