Repository: spark
Updated Branches:
  refs/heads/branch-2.3 306e881b6 -> b072717b3


[SPARK-25273][DOC] How to install testthat 1.0.2

## What changes were proposed in this pull request?

R tests require `testthat` v1.0.2. In the PR, I described how to install the 
version in the section 
http://spark.apache.org/docs/latest/building-spark.html#running-r-tests.

Closes #22272 from MaxGekk/r-testthat-doc.

Authored-by: Maxim Gekk <maxim.g...@databricks.com>
Signed-off-by: hyukjinkwon <gurwls...@apache.org>


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

Branch: refs/heads/branch-2.3
Commit: b072717b3f6178e728c0bf855aca243c275e58f0
Parents: 306e881
Author: Maxim Gekk <maxim.g...@databricks.com>
Authored: Thu Aug 30 20:25:26 2018 +0800
Committer: hyukjinkwon <gurwls...@apache.org>
Committed: Thu Aug 30 20:26:36 2018 +0800

----------------------------------------------------------------------
 docs/README.md         | 3 ++-
 docs/building-spark.md | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b072717b/docs/README.md
----------------------------------------------------------------------
diff --git a/docs/README.md b/docs/README.md
index 166a7e5..174a735 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -22,8 +22,9 @@ $ sudo gem install jekyll jekyll-redirect-from pygments.rb
 $ sudo pip install Pygments
 # Following is needed only for generating API docs
 $ sudo pip install sphinx pypandoc mkdocs
-$ sudo Rscript -e 'install.packages(c("knitr", "devtools", "testthat", 
"rmarkdown"), repos="http://cran.stat.ucla.edu/";)'
+$ sudo Rscript -e 'install.packages(c("knitr", "devtools", "rmarkdown"), 
repos="http://cran.stat.ucla.edu/";)'
 $ sudo Rscript -e 'devtools::install_version("roxygen2", version = "5.0.1", 
repos="http://cran.stat.ucla.edu/";)'
+$ sudo Rscript -e 'devtools::install_version("testthat", version = "1.0.2", 
repos="http://cran.stat.ucla.edu/";)'
 ```
 
 Note: If you are on a system with both Ruby 1.9 and Ruby 2.0 you may need to 
replace gem with gem2.0.

http://git-wip-us.apache.org/repos/asf/spark/blob/b072717b/docs/building-spark.md
----------------------------------------------------------------------
diff --git a/docs/building-spark.md b/docs/building-spark.md
index 9f78c04..cd80835 100644
--- a/docs/building-spark.md
+++ b/docs/building-spark.md
@@ -232,7 +232,8 @@ The run-tests script also can be limited to a specific 
Python version or a speci
 
 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')"
+    R -e "install.packages(c('knitr', 'rmarkdown', 'devtools', 'e1071', 
'survival'), repos='http://cran.us.r-project.org')"
+    R -e "devtools::install_version('testthat', version = '1.0.2', 
repos='http://cran.us.r-project.org')"
 
 You can run just the SparkR tests using the command:
 


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

Reply via email to