X

Geertjan's Blog

  • March 23, 2014

R Plugin for NetBeans IDE (Part 2)

Geertjan Wielenga
Product Manager

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:

https://github.com/geertjanw/nbr

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!

Join the discussion

Comments ( 13 )
  • guest Monday, March 24, 2014

    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.


  • guest Monday, March 24, 2014

    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.


  • guest Wednesday, March 26, 2014

    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.


  • Benjamin Monday, April 28, 2014

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


  • guest Sunday, May 18, 2014

    Hi,

    nice project.

    I would like to alpha-test this plugin.

    Best


  • Stan Wednesday, September 3, 2014

    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.


  • guest Wednesday, February 4, 2015

    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.

    thanks


  • guest Saturday, February 7, 2015

    Are any news about this project?

    On github there are no any changes during 11 months.


  • guest Friday, February 13, 2015

    Hello!

    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!


  • guest Tuesday, April 7, 2015

    Hi Geertjan,

    I would love to be part of your Beta test.


  • Constantin Thursday, April 9, 2015

    Hello,

    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.

    Kinds,


  • footing Monday, October 12, 2015

    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:

    https://cran.r-project.org/web/packages/rJava/index.html


  • Tim Boudreau Wednesday, March 22, 2017

    Umm, yeah, the checkin is mangled - the build script references Analyzer as a project, but RNb/Analyzer is empty. So, not buildable. There is an Analyzer branch, but that is missing even more content.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.