Emegs Help Logo

Installation guide for MAC

Installing **EMEGS (Qt version) ** for MAC OSX  (built on 10.8.2)

Double-click on the downloaded qemegs disk image (qemegs-1.x.dmg) and the simply move the  “qemegs.app” (or “EMEGS Qt-version.app” for 2.0) bundle to your application folder. This bundle already includes Qt4 and a few other libraries you need. Lapack and Blas should be part of your system by default, and are not included.

Installing and configuring R

If and only if you wish to run an ANOVA on ERP/ERF-data in R, you need to correctly configure the communication with R. In order to do this, download and install “R” with the installer (R-3.0.1.dmg) for MacOSX (for instance from http://stat.ethz.ch/CRAN/). Make sure you use some recent version of R and that it is installed as framework at the default location (/Library/Frameworks). Install the R-packages reshape2, RSvgDevice, for instance by typing in the R command prompt

install.packages(“reshape2”)
install.packages(“RSvgDevice”)

To use the “R” via Rserve in EMEGS (Qt version), you need to install the R-package Rserve, and start the Rserve by typing

install.packages(“Rserve”)
library(Rserve)
Rserve()

Although this is the way that I think it is supposed to work (and works on Linux and Windows), on MAC I got the error

Fatal error: You have to add ‘–save’, ‘–no-save’ or ‘–vanilla’

The other way to start Rserve is using the Terminal, and typing the command

R CMD Rserve

Here I got the error

/Library/Frameworks/R.framework/Resources/bin/Rcmd:line62: exec: Rserve: not found

but I could fix this by copying the Rserve executable  to the bin-directory as follows

sudo cp /Library/Frameworks/R.framework/Resources/library/Rserve/Rserve /Library/Frameworks/R.framework/Resources/bin/Rserve