Hi Ashish,

Thank you for providing the r interpreter integration in the below repository 
and all your help with configuring it:

https://github.com/Peaceful-learner/incubator-zeppelin/tree/rinterpreter 
<https://github.com/Peaceful-learner/incubator-zeppelin/tree/rinterpreter>

The integration of graphics output and SparkR works really well!

In case others find it helpful, setting it up required the following steps (for 
me at least, on OS X) which Ashish kindly guided me through:

Install the following R packages:

evaluate (required to compile the code in the repository)
devtools
ggtools2
googleVis
knitr
base64enc
htmltools

and repr,rCharts and devtools using:

library(devtools)
devtools::install_github("IRkernel/repr”)
devtools::install_github('apache/spark@v1.4.1', subdir='R/pkg’)
devtools::install_github('rCharts', 'ramnathv')

clone the repository and switch to the rinterpreter branch.

build using:

mvn clean package -DskipTests

and finally add 
org.apache.zeppelin.rinterpreter.RRepl,org.apache.zeppelin.rinterpreter.KnitR 
to the list of interpreters in the conf/zeppelin-site.xml file and start 
zeppelin - no need to create or copy any jars into interpreter/r.

the interpreter is then available as %spark.r.

Best regards
Stefan

> On 28 Sep 2015, at 07:24, Ashish Dalal <dalalstree...@gmail.com> wrote:
> 
> Hi All,
> Also, I tried the zeppelin-R repo provided by the datalayer.io 
> <http://datalayer.io/> folks but could not get it to working. I am also 
> facing the same issues as faced by Stefan. 
> 
> Regards,
> Ashish
> 
> On Mon, Sep 28, 2015 at 11:46 AM, Ashish Dalal <dalalstree...@gmail.com 
> <mailto:dalalstree...@gmail.com>> wrote:
> Hi, Leonardo and Stefan,
> 
> I have forked the following 
> https://github.com/elbamos/incubator-zeppelin/tree/rinterpreter/ 
> <https://github.com/elbamos/incubator-zeppelin/tree/rinterpreter/> and after 
> resolving some build issues , I was able to get R running successfully on my 
> local machine. I would be committing my code to my local repo in short while 
> from now. You can give it a try.
> Also, Leonardo, I think for rendering R graphics inline on the zeppelin, you 
> got to install the repr package in R, now repr also is not a standard package 
> in R but you can it via the following command.
> devtools::install_github("IRkernel/repr")
> 
> Regards,
> Ashish
>   
> 
> On Mon, Sep 28, 2015 at 8:18 AM, Leonardo Foderaro <startrac...@gmail.com 
> <mailto:startrac...@gmail.com>> wrote:
> Hi Stefan,
> I am working on a similar task, an R Interpreter for Zeppelin.
> Since I started from scratch my version is still quite essential (e.g. no 
> completion and no knitr yet) but I'm not getting your error. I can execute 
> multiple R paragraphs while keeping different Rserve sessions (one per 
> notebook)
> On the other hand I'm facing some problems with graphics, I'd like to include 
> the beautiful R plotting capabilities in my Interpreter but (I still don't 
> know why) it isn't working yet.
> However tomorrow I'll push my local repo so if you want you can give it a try 
> to see if it solves your run-and-restart issue.
> 
> best regards,
> Leonardo
> 
> 
> 
> 
> 
> 
> On Sunday, September 27, 2015, Stefan Thorbjørn Blixen-Finecke 
> <stf...@gmail.com <mailto:stf...@gmail.com>> wrote:
> Apologies if this has already been asked and answered.
> 
> Is the best way to get an R interpreter in Zeppelin the guide below?
> 
> https://github.com/datalayer/zeppelin-R 
> <https://github.com/datalayer/zeppelin-R>
> 
> I’ve followed the instructions provided and set up an interpreter within 
> Zeppelin as pr. 
> https://zeppelin.incubator.apache.org/docs/development/writingzeppelininterpreter.html
>  
> <https://zeppelin.incubator.apache.org/docs/development/writingzeppelininterpreter.html>
> 
> However I can only run a command once successfully before the interpreter 
> fails (for the same command) with the following (from the log file):
> 
>  INFO [2015-09-27 20:11:27,856] ({pool-2-thread-2} 
> RInterpreter.java[interpret]:101) - Run R command 'R.version.string'
> ERROR [2015-09-27 20:11:29,137] ({pool-2-thread-2} 
> RInterpreter.java[interpret]:130) - Exception while connecting to Rserve
> org.rosuda.REngine.Rserve.RserveException: voidEval failed
>       at org.rosuda.REngine.Rserve.RConnection.voidEval(RConnection.java:209)
>       at io.datalayer.zeppelin.R.RInterpreter.interpret(RInterpreter.java:117)
> 
> The interpreter has to be restarted from the zeppelin interpreter menu before 
> it can execute another command. Has anyone had any luck setting this up? If 
> yes, where any additional steps required?
> 
> Best regards
> Stefan
> 
> 

Reply via email to