I tried installing R to get %r and %knitr interpreter in spark but only r is
added.
I updated at the same time to Zeppelin 0.6.2 using the binary download with
all interpreters installed.
Is knitr deprecated?
my interpreter.json shows
/ {
"class": "org.apache.zeppelin.spark.SparkRInterpreter",
"name": "r"
},/
but on the web I found settings that seem to include
/org.apache.zeppelin.rinterpreter.KnitRInterpreter -> knitr/
and
/org.apache.zeppelin.rinterpreter.RReplInterpreter -> r/
adding any of that in the interpreter.json did not help.
Spark is running in a debian:jessie docker container which installed R 3.1.1
via apt-get
/apt-get install -y r-base r-base-dev gfortran/
and I installed a couple of packages
/RUN R -e "install.packages('devtools', repos =
'http://cran.us.r-project.org')" \
&& R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')"
\
&& R -e "install.packages('ggplot2', repos =
'http://cran.us.r-project.org')" \
&& R -e "install.packages('glmnet', repos =
'http://cran.us.r-project.org')" \
&& R -e "install.packages('pROC', repos = 'http://cran.us.r-project.org')"
\
&& R -e "install.packages('data.table', repos =
'http://cran.us.r-project.org')" \
&& R -e "install.packages('caret', repos = 'http://cran.us.r-project.org')"
\
&& R -e "install.packages('sqldf', repos =
'http://cran.us.r-project.org')"/
probably more than I need but knitr should be in.
%r interpreter works perfectly well in Zeppelin but there is no %knitr
listet and it says spark.knitr interpreter not found if I try to run %knitr
echo = F anyway.
spark interpreter config:
/zeppelin.R.cmd R
zeppelin.R.image.width 100%
zeppelin.R.knitr true
zeppelin.R.render.options out.format = 'html', comment = NA, echo = FALSE,
results = 'asis', message = F, warning = F/
As much as I understand knitr is only wrapper for that package. Is there no
need for it anymore?
My R knowledge is limited I am just supposed to set it up for someone else
who wants R. I would rather use scala but the ploting libraries seem
interesting.
--
View this message in context:
http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/knitr-still-a-thing-tp4431.html
Sent from the Apache Zeppelin Users (incubating) mailing list mailing list
archive at Nabble.com.