Repository: spark
Updated Branches:
  refs/heads/master b4c32c495 -> 74c1b79f3


[SPARK-15637][SPARKR] fix R tests on R 3.2.2

## What changes were proposed in this pull request?

Change version check in R tests

## How was this patch tested?

R tests
shivaram

Author: felixcheung <[email protected]>

Closes #13369 from felixcheung/rversioncheck.


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

Branch: refs/heads/master
Commit: 74c1b79f3f82751d166bccba877501a8cabc9b7c
Parents: b4c32c4
Author: felixcheung <[email protected]>
Authored: Sat May 28 10:32:40 2016 -0700
Committer: Shivaram Venkataraman <[email protected]>
Committed: Sat May 28 10:32:40 2016 -0700

----------------------------------------------------------------------
 R/pkg/inst/tests/testthat/test_context.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/74c1b79f/R/pkg/inst/tests/testthat/test_context.R
----------------------------------------------------------------------
diff --git a/R/pkg/inst/tests/testthat/test_context.R 
b/R/pkg/inst/tests/testthat/test_context.R
index 15915e2..1d56ced 100644
--- a/R/pkg/inst/tests/testthat/test_context.R
+++ b/R/pkg/inst/tests/testthat/test_context.R
@@ -28,7 +28,7 @@ test_that("Check masked functions", {
                      "colnames", "colnames<-", "intersect", "rank", "rbind", 
"sample", "subset",
                      "summary", "transform", "drop", "window", "as.data.frame")
   namesOfMaskedCompletely <- c("cov", "filter", "sample")
-  if (as.numeric(R.version$major) == 3 && as.numeric(R.version$minor) > 2) {
+  if (as.numeric(R.version$major) >= 3 && as.numeric(R.version$minor) >= 3) {
     namesOfMasked <- c("endsWith", "startsWith", namesOfMasked)
     namesOfMaskedCompletely <- c("endsWith", "startsWith", 
namesOfMaskedCompletely)
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to