aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorwm624@hotmail.com <wm624@hotmail.com>2016-11-03 15:27:18 -0700
committerFelix Cheung <felixcheung@apache.org>2016-11-03 15:27:18 -0700
commite89202523bc2f5573bd736278c6b96c6e6759909 (patch)
treea3684731d25172d2f65001dc2018ca9d910fbee9 /R
parent67659c9afaeb2289e56fd87fafee953e8f050383 (diff)
downloadspark-e89202523bc2f5573bd736278c6b96c6e6759909.tar.gz
spark-e89202523bc2f5573bd736278c6b96c6e6759909.tar.bz2
spark-e89202523bc2f5573bd736278c6b96c6e6759909.zip
[SPARKR][TEST] remove unnecessary suppressWarnings
## What changes were proposed in this pull request? In test_mllib.R, there are two unnecessary suppressWarnings. This PR just removes them. ## How was this patch tested? Existing unit tests. Author: wm624@hotmail.com <wm624@hotmail.com> Closes #15697 from wangmiao1981/rtest.
Diffstat (limited to 'R')
-rw-r--r--R/pkg/inst/tests/testthat/test_mllib.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/pkg/inst/tests/testthat/test_mllib.R b/R/pkg/inst/tests/testthat/test_mllib.R
index db98d0e455..e48df038df 100644
--- a/R/pkg/inst/tests/testthat/test_mllib.R
+++ b/R/pkg/inst/tests/testthat/test_mllib.R
@@ -133,7 +133,7 @@ test_that("spark.glm summary", {
w <- c(1, 2, 3, 4)
b <- c(1, 0, 1, 0)
data <- as.data.frame(cbind(a1, a2, w, b))
- df <- suppressWarnings(createDataFrame(data))
+ df <- createDataFrame(data)
stats <- summary(spark.glm(df, b ~ a1 + a2, family = "binomial", weightCol = "w"))
rStats <- summary(glm(b ~ a1 + a2, family = "binomial", data = data, weights = w))
@@ -575,7 +575,7 @@ test_that("spark.isotonicRegression", {
feature <- c(0.0, 1.0, 2.0, 3.0, 4.0)
weight <- c(1.0, 1.0, 1.0, 1.0, 1.0)
data <- as.data.frame(cbind(label, feature, weight))
- df <- suppressWarnings(createDataFrame(data))
+ df <- createDataFrame(data)
model <- spark.isoreg(df, label ~ feature, isotonic = FALSE,
weightCol = "weight")