spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [MINOR][DOCS] Improve Running R Tests docs
Date Fri, 16 Jun 2017 10:03:57 GMT
Repository: spark
Updated Branches:
  refs/heads/master 2837b14cd -> 45824fb60


[MINOR][DOCS] Improve Running R Tests docs

## What changes were proposed in this pull request?

Update Running R Tests dependence packages to:
```bash
R -e "install.packages(c('knitr', 'rmarkdown', 'testthat', 'e1071', 'survival'), repos='http://cran.us.r-project.org')"
```

## How was this patch tested?
manual tests

Author: Yuming Wang <wgyumg@gmail.com>

Closes #18271 from wangyum/building-spark.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/45824fb6
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/45824fb6
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/45824fb6

Branch: refs/heads/master
Commit: 45824fb608930eb461e7df53bb678c9534c183a9
Parents: 2837b14
Author: Yuming Wang <wgyumg@gmail.com>
Authored: Fri Jun 16 11:03:54 2017 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Fri Jun 16 11:03:54 2017 +0100

----------------------------------------------------------------------
 R/README.md            | 6 +-----
 R/WINDOWS.md           | 3 +--
 docs/building-spark.md | 8 +++++---
 3 files changed, 7 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/45824fb6/R/README.md
----------------------------------------------------------------------
diff --git a/R/README.md b/R/README.md
index 4c40c59..1152b1e 100644
--- a/R/README.md
+++ b/R/README.md
@@ -66,11 +66,7 @@ To run one of them, use `./bin/spark-submit <filename> <args>`.
For example:
 ```bash
 ./bin/spark-submit examples/src/main/r/dataframe.R
 ```
-You can also run the unit tests for SparkR by running. You need to install the [testthat](http://cran.r-project.org/web/packages/testthat/index.html)
package first:
-```bash
-R -e 'install.packages("testthat", repos="http://cran.us.r-project.org")'
-./R/run-tests.sh
-```
+You can run R unit tests by following the instructions under [Running R Tests](http://spark.apache.org/docs/latest/building-spark.html#running-r-tests).
 
 ### Running on YARN
 

http://git-wip-us.apache.org/repos/asf/spark/blob/45824fb6/R/WINDOWS.md
----------------------------------------------------------------------
diff --git a/R/WINDOWS.md b/R/WINDOWS.md
index 9ca7e58..124bc63 100644
--- a/R/WINDOWS.md
+++ b/R/WINDOWS.md
@@ -34,10 +34,9 @@ To run the SparkR unit tests on Windows, the following steps are required
—ass
 
 4. Set the environment variable `HADOOP_HOME` to the full path to the newly created `hadoop`
directory.
 
-5. Run unit tests for SparkR by running the command below. You need to install the [testthat](http://cran.r-project.org/web/packages/testthat/index.html)
package first:
+5. Run unit tests for SparkR by running the command below. You need to install the needed
packages following the instructions under [Running R Tests](http://spark.apache.org/docs/latest/building-spark.html#running-r-tests)
first:
 
     ```
-    R -e "install.packages('testthat', repos='http://cran.us.r-project.org')"
     .\bin\spark-submit2.cmd --conf spark.hadoop.fs.defaultFS="file:///" R\pkg\tests\run-all.R
     ```
 

http://git-wip-us.apache.org/repos/asf/spark/blob/45824fb6/docs/building-spark.md
----------------------------------------------------------------------
diff --git a/docs/building-spark.md b/docs/building-spark.md
index 0f551bc..777635a 100644
--- a/docs/building-spark.md
+++ b/docs/building-spark.md
@@ -218,9 +218,11 @@ The run-tests script also can be limited to a specific Python version
or a speci
 
 ## Running R Tests
 
-To run the SparkR tests you will need to install the R package `testthat`
-(run `install.packages(testthat)` from R shell).  You can run just the SparkR tests using
-the command:
+To run the SparkR tests you will need to install the [knitr](https://cran.r-project.org/package=knitr),
[rmarkdown](https://cran.r-project.org/package=rmarkdown), [testthat](https://cran.r-project.org/package=testthat),
[e1071](https://cran.r-project.org/package=e1071) and [survival](https://cran.r-project.org/package=survival)
packages first:
+
+    R -e "install.packages(c('knitr', 'rmarkdown', 'testthat', 'e1071', 'survival'), repos='http://cran.us.r-project.org')"
+
+You can run just the SparkR tests using the command:
 
     ./R/run-tests.sh
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message