aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/tests/testthat/test_mllib.R
diff options
context:
space:
mode:
authorSun Rui <rui.sun@intel.com>2016-03-13 14:30:44 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-03-13 14:30:44 -0700
commitc7e68c3968357268f705dee1477c448472c21547 (patch)
tree8c19086a3248bfe8538b1e1c3e9754225d0db64c /R/pkg/inst/tests/testthat/test_mllib.R
parent515e4afbc7ec957609451ea75772d6ef1b914908 (diff)
downloadspark-c7e68c3968357268f705dee1477c448472c21547.tar.gz
spark-c7e68c3968357268f705dee1477c448472c21547.tar.bz2
spark-c7e68c3968357268f705dee1477c448472c21547.zip
[SPARK-13812][SPARKR] Fix SparkR lint-r test errors.
## What changes were proposed in this pull request? This PR fixes all newly captured SparkR lint-r errors after the lintr package is updated from github. ## How was this patch tested? dev/lint-r SparkR unit tests Author: Sun Rui <rui.sun@intel.com> Closes #11652 from sun-rui/SPARK-13812.
Diffstat (limited to 'R/pkg/inst/tests/testthat/test_mllib.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 af84a0abcf..e120462964 100644
--- a/R/pkg/inst/tests/testthat/test_mllib.R
+++ b/R/pkg/inst/tests/testthat/test_mllib.R
@@ -96,9 +96,9 @@ test_that("summary coefficients match with native glm of family 'binomial'", {
training <- filter(df, df$Species != "setosa")
stats <- summary(glm(Species ~ Sepal_Length + Sepal_Width, data = training,
family = "binomial"))
- coefs <- as.vector(stats$coefficients[,1])
+ coefs <- as.vector(stats$coefficients[, 1])
- rTraining <- iris[iris$Species %in% c("versicolor","virginica"),]
+ rTraining <- iris[iris$Species %in% c("versicolor", "virginica"), ]
rCoefs <- as.vector(coef(glm(Species ~ Sepal.Length + Sepal.Width, data = rTraining,
family = binomial(link = "logit"))))