aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst
diff options
context:
space:
mode:
authorfelixcheung <felixcheung_m@hotmail.com>2016-05-28 10:32:40 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-05-28 10:32:40 -0700
commit74c1b79f3f82751d166bccba877501a8cabc9b7c (patch)
tree5a929f085cbb7b13b79ac44cd98c4c427606c92b /R/pkg/inst
parentb4c32c4952f7af2733258aa4e27f21e8832c8a3a (diff)
downloadspark-74c1b79f3f82751d166bccba877501a8cabc9b7c.tar.gz
spark-74c1b79f3f82751d166bccba877501a8cabc9b7c.tar.bz2
spark-74c1b79f3f82751d166bccba877501a8cabc9b7c.zip
[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 <felixcheung_m@hotmail.com> Closes #13369 from felixcheung/rversioncheck.
Diffstat (limited to 'R/pkg/inst')
-rw-r--r--R/pkg/inst/tests/testthat/test_context.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/tests/testthat/test_context.R b/R/pkg/inst/tests/testthat/test_context.R
index 15915e2d13..1d56ced399 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)
}