From 9fe9b92a7dbd87b82726794fb9e1a84cb5439b76 Mon Sep 17 00:00:00 2001 From: Maxim Gekk Date: Wed, 29 Aug 2018 22:40:52 +0200 Subject: [PATCH 1/2] Updating doc regarding testthat --- docs/building-spark.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/building-spark.md b/docs/building-spark.md index d3dfd4902a920..0086aeaaa4701 100644 --- a/docs/building-spark.md +++ b/docs/building-spark.md @@ -236,7 +236,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: From 1d3daed3ce7264cd08fdfa774da7f3cfb26735d5 Mon Sep 17 00:00:00 2001 From: Maxim Gekk Date: Thu, 30 Aug 2018 13:37:46 +0200 Subject: [PATCH 2/2] Recommend correct version of testthat --- docs/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 7da543dd297ad..fb67c4b3586d6 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.