R Plugin for NetBeans IDE (Part 2)

When I wrote about R in NetBeans IDE some time ago, there were a lot of responses. Constantin Drabo from Burkina Faso, who is leading this project, has made the sources available and I have checked them in here:


I probably messed up the check in a bit, especially the Analyzer module, may need to check it in again in a fresh repository. But if everything is set up correctly, the sources look like this:

Right now it's a little bit early to make the binaries available in the NetBeans Plugin Portal, but hopefully we'll wrap up the open issues soon. (Anyone interested in being alpha testers, please say so in the comments to this blog.)

R projects can be created and one of the aims of the R support for NetBeans IDE is to provide a learning environment for R newbies (rewbies?), which will consists of, for example, all the examples found here, as file templates, as you can see here:

An R file open in the editor looks like this:

You can register R in the Options window, enabling you to right-click an R file and generate visualizations within PDF files, as you can see here, including the PDF viewer that the R plugin provides:

Interesting projects to incorporate somehow include Java ordinary R infrastructure support (Joris), Rserve, and Java GUI for R.

Lots of fun work ahead!


Looks like an interesting project. I've built data analysis tools on the NetBeans platform using R as a calculation engine and RJava but not with as much integration as this project. I've used R for a few years so can offer some help with testing.

Posted by guest on March 24, 2014 at 02:38 AM PDT #

This looks like a great project, with an amazing potential. As someone who has worked with R quite a bit, and on a large project, I can tell you how frustrating it can be to not have a proper IDE available. In recent years a few software packes to aid R development have become available in the form of JGR, Rstudio, Tinn-R and RKWard, but non of them benefit of being built on top of the NetBeans Platform. :) Let's hope this is the beginning of full NetBeans support for the R language, and a healthy community of plugins hooking into that environment. (Java like debugging for R anyone??)
I will glady assist with the alpha testing.

Posted by guest on March 24, 2014 at 04:02 PM PDT #

Ahh, that would be super-cool. I'm just imagining being able to offer a table-like view of data in my NBP app and provide an option to just "start R session", automatically loading the table into an R data frame, so that the user could interactively play with the data never having to "export" the table to a csv, then go to R environment, load the csv into workspace, etc.
I'd love to at least make an attempt at test-driving this.

Posted by guest on March 25, 2014 at 07:23 PM PDT #

I would also like to alpha-test this plugin. Thanks in advance !

Posted by Benjamin on April 28, 2014 at 03:48 AM PDT #

nice project.
I would like to alpha-test this plugin.


Posted by guest on May 18, 2014 at 02:46 PM PDT #

I teach a course where my students need to use R only twice during the semester to analyze experimental data. Last year I tried teaching them to use Deducer, which runs on top of JGR. It was a disaster. These platforms are difficult to install with different issues for Windows students, Mac students, and Linux students. The user interface is completely nonstandard, clunky and buggy. I am currently planning on switching to RStudio. However, a NB plugin for R would be ideal, as the students already use NB in the course! I do not have time to contribute, but would like to test.

Posted by Stan on September 02, 2014 at 08:58 PM PDT #

It would be great to alpha test a netbeans plugin for R. Please, R need an IDE badly and I'd like to help anyway I can.


Posted by guest on February 04, 2015 at 01:53 PM PST #

Are any news about this project?
On github there are no any changes during 11 months.

Posted by guest on February 07, 2015 at 12:25 PM PST #


I tried to use the lexer and parser from this project. It doesn't compile with antlr 4.0 and doesn't run with antlr 4.1 saying the following:
java.io.InvalidClassException: org.antlr.v4.runtime.atn.ATN; Could not deserialize ATN with version 2 (expected 3).
Caused: java.lang.UnsupportedOperationException
at org.antlr.v4.runtime.atn.ATNSimulator.deserialize(ATNSimulator.java:132)
at org.netbeans.lexer.RLexer.<clinit>(RLexer.java:321)

There are no original R.g4 file in github repository. Is it possible to get it so I can recompile lexer and parser?

Thank you in advance!

Posted by guest on February 13, 2015 at 04:13 AM PST #

Hi Geertjan,
I would love to be part of your Beta test.

Posted by guest on April 07, 2015 at 02:35 PM PDT #

I will solve the issue according the error.
I'm sorry for lack of update. I'm so busy here by other project. I hope to give to you a better editor soon.

Posted by Constantin on April 09, 2015 at 04:14 AM PDT #

You can also use R-to-Java interface, it's a trick that you add RJava packages to your netbeans Java project library. go to this:

Posted by footing on October 12, 2015 at 11:11 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016