Skip to content

Commit 7b04b6b

Browse files
committed

File tree

5 files changed

+597
-238
lines changed

5 files changed

+597
-238
lines changed

docs/interpreter/R.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,31 @@ group: manual
1010

1111
[R](https://www.r-project.org) iR is a free software environment for statistical computing and graphics.
1212

13-
To run R code and visualize plots in Apache Zeppelin, you will need:
13+
To run R code and visualize plots in Apache Zeppelin, you will need R on your master node (or your dev laptop).
1414

15-
+ devtools with `install.packages("devtools", repos = "http://cran.us.r-project.org")`
16-
+ knitr with `install.packages("knitr", repos = "http://cran.us.r-project.org")`
17-
+ ggplot2 with `install.packages("ggplot2", repos = "http://cran.us.r-project.org")`
18-
+ rscala: We need version 1.0.6 of Rscala, so the commands will be [1]
15+
+ For Centos: yum install R R-devel
16+
+ For Ubuntu: apt-get install r-base r-cran-rserve
17+
18+
Validate your installation with a simple R command:
1919

2020
```
21-
[1]
22-
curl https://cran.r-project.org/src/contrib/Archive/rscala/rscala_1.0.6.tar.gz -o /tmp/rscala_1.0.6.tar.gz
23-
R CMD INSTALL /tmp/rscala_1.0.6.tar.gz
21+
R -e print(1+1)
2422
```
2523

26-
Validate your installation with a simple R command:
24+
Then install the required R libraries;
25+
26+
+ devtools with `R -e "install.packages('devtools', repos = 'http://cran.us.r-project.org')"`
27+
+ knitr with `R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')"`
28+
+ ggplot2 with `R -e "install.packages('ggplot2', repos = 'http://cran.us.r-project.org')"`
29+
+ rscala: You need version 1.0.6 of RScala, so the commands will be [1]
2730

2831
```
29-
print(1+1)
32+
[1]
33+
curl https://cran.r-project.org/src/contrib/Archive/rscala/rscala_1.0.6.tar.gz -o /tmp/rscala_1.0.6.tar.gz
34+
R CMD INSTALL /tmp/rscala_1.0.6.tar.gz
3035
```
3136

32-
We recommend you to also install the following libraries:
37+
We recommend you to also install the following optional R libraries to enjoy data analytics:
3338

3439
+ glmnet
3540
+ pROC

0 commit comments

Comments
 (0)