wiki:MolgenisRinterface

Using the R interface

On the MOLGENIS user interface there is a link to the R interface. If you read this we is assume that you already installed R from the  http://www.r-project.org web page.

  1. Start the MOLGENIS server for your application and browse to the user interface.
  2. Click the ‘R-project API’ pagelink on the top menu of your Address Book and view and copy the R script that is shown on this page. Notice how the R-api is simply an ‘source.R’ file on the MOLGENIS server.
  3. Start the RGui and paste the R script you just copied. (Optional) you may get an error that the RCurl package is unavailable. In that case uncomment and paste the following lines to install this package:
    source("http://bioconductor.org/biocLite.R")
    #biocLite("RCurl")
    
  4. Finally reproduce the java script listed above. The first part is already given below assuming you use the MolgenisAddressBookExample:
    find.contact()
    add.contact(displayname="test")
    find.contact()
    remove.contact(find.contact(displayname="test"))
    ...