Skip to content
Snippets Groups Projects
Commit 74c1b79f authored by felixcheung's avatar felixcheung Committed by Shivaram Venkataraman
Browse files

[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.
parent b4c32c49
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ test_that("Check masked functions", { ...@@ -28,7 +28,7 @@ test_that("Check masked functions", {
"colnames", "colnames<-", "intersect", "rank", "rbind", "sample", "subset", "colnames", "colnames<-", "intersect", "rank", "rbind", "sample", "subset",
"summary", "transform", "drop", "window", "as.data.frame") "summary", "transform", "drop", "window", "as.data.frame")
namesOfMaskedCompletely <- c("cov", "filter", "sample") 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) namesOfMasked <- c("endsWith", "startsWith", namesOfMasked)
namesOfMaskedCompletely <- c("endsWith", "startsWith", namesOfMaskedCompletely) namesOfMaskedCompletely <- c("endsWith", "startsWith", namesOfMaskedCompletely)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment