diff --git a/R/pkg/inst/tests/testthat/test_context.R b/R/pkg/inst/tests/testthat/test_context.R
index 15915e2d13c29a522cb28327f72c7fa6a858d395..1d56ced399a9e950c112a078f1f17ff84f33719f 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)
   }