You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2021/08/16 03:42:01 UTC

[zeppelin] branch master updated: [ZEPPELIN-5487] Add docker usage in R interpreter doc

This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new d4d82e3  [ZEPPELIN-5487] Add docker usage in R interpreter doc
d4d82e3 is described below

commit d4d82e3a843903e66f76e12157c16eeade926576
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Fri Aug 13 10:54:31 2021 +0800

    [ZEPPELIN-5487] Add docker usage in R interpreter doc
---
 .../themes/zeppelin/img/docs-img/r_shiny_app.gif       | Bin 0 -> 477942 bytes
 docs/interpreter/r.md                                  |  17 +++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/docs/assets/themes/zeppelin/img/docs-img/r_shiny_app.gif b/docs/assets/themes/zeppelin/img/docs-img/r_shiny_app.gif
new file mode 100644
index 0000000..21c2432
Binary files /dev/null and b/docs/assets/themes/zeppelin/img/docs-img/r_shiny_app.gif differ
diff --git a/docs/interpreter/r.md b/docs/interpreter/r.md
index 2d39126..648d579 100644
--- a/docs/interpreter/r.md
+++ b/docs/interpreter/r.md
@@ -151,6 +151,23 @@ If you want to use R with Spark, it is almost the same via `%spark.r`, `%spark.i
   </tr>
 </table>
 
+## Play R in Zeppelin docker
+
+For beginner, we would suggest you to play R in Zeppelin docker first. In the Zeppelin docker image, we have already installed R and lots of useful R libraries including IRKernel's prerequisites, so `%r.ir` is available.
+
+Without any extra configuration, you can run most of tutorial notes under folder `R Tutorial` directly.
+
+```
+docker run -u $(id -u) -p 8080:8080 -p:6789:6789 --rm --name zeppelin apache/zeppelin:0.10.0
+```
+
+After running the above command, you can open http://localhost:8080 to play R in Zeppelin.
+The port `6789` exposed in the above command is for R shiny app. You need to configure `zeppelin.R.shiny.portRange` to be `6789:6789` 
+to enable shiny app accessible as iframe in Zeppelin. 
+
+<img class="img-responsive" src="{{BASE_PATH}}/assets/themes/zeppelin/img/docs-img/r_shiny_app.gif" width="800px"/>
+
+
 ## Interpreter binding mode
 
 The default [interpreter binding mode](../usage/interpreter/interpreter_binding_mode.html) is `globally shared`. That means all notes share the same R interpreter.