Of Ggobi, MacPorts and R

A very short post about my recent frustration with an update of MacPorts that completely removed the ability of R to communicate with Ggobi. The solution: install a VirtualBox Ubuntu 12.10 and run R inside for the moments when one needs rggobi.

First: follow the instructions from the detailed tutorial on osxdaily (http://osxdaily.com/2012/03/27/install-run-ubuntu-linux-virtualbox/)

Next:

1. To allow access to the shared folders, in a Terminal window on the new Ubuntu:

sudo usermod -G vboxsf -a username

This command appends the user “username” to the vboxsf group, which is the owner of the shared folders (found in /media/ on the Ubuntu box)

2. To allow higher resolution of screen, you need to install the Guest Additions, something that will allow the host VirtualBox environment to communicate with the installed Ubuntu. In a first step, one need to install some tools via the usual apt-get method:

sudo apt-get install dkms
sudo apt-get install build-essential

Next, launch the installation of the Guest Additions from the menu of the virtual machine:

Menu –> Devices>Install Guest Additions …
 

R, ggobi, rggobi can be installed with apt-get and work very well. I use a session with cairo-dock and still like synaptic for package management and geany for text editing. Rstudio installs without problems as well. Synapse is  a “must have” for rapid launching of any application. You can share the clipboard in both directions with Mac OS X.

EDIT (April 2013) – Everything works fine on the VirtualBox, even running a server that is accesible from “outside the box”. To be able to see a web server running on the virtual machine, you can use the port redirection option in the configuration of the virtual box. In my case, both ports were 8080:

virtualbox_redirect_port

Edit (2013-07-25): If, for any reason, you find R install on the virtual Ubuntu strange, use the official R repository at (http://cran.at.r-project.org/bin/linux/ubuntu/).

Advertisements

One thought on “Of Ggobi, MacPorts and R

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s