diff options
author | Sun Rui <rui.sun@intel.com> | 2016-03-13 14:30:44 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-03-13 14:30:44 -0700 |
commit | c7e68c3968357268f705dee1477c448472c21547 (patch) | |
tree | 8c19086a3248bfe8538b1e1c3e9754225d0db64c /R/pkg/inst/tests/testthat/test_broadcast.R | |
parent | 515e4afbc7ec957609451ea75772d6ef1b914908 (diff) | |
download | spark-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_broadcast.R')
-rw-r--r-- | R/pkg/inst/tests/testthat/test_broadcast.R | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/R/pkg/inst/tests/testthat/test_broadcast.R b/R/pkg/inst/tests/testthat/test_broadcast.R index bb86a5c922..8be6efc3db 100644 --- a/R/pkg/inst/tests/testthat/test_broadcast.R +++ b/R/pkg/inst/tests/testthat/test_broadcast.R @@ -25,7 +25,7 @@ nums <- 1:2 rrdd <- parallelize(sc, nums, 2L) test_that("using broadcast variable", { - randomMat <- matrix(nrow=10, ncol=10, data=rnorm(100)) + randomMat <- matrix(nrow = 10, ncol = 10, data = rnorm(100)) randomMatBr <- broadcast(sc, randomMat) useBroadcast <- function(x) { @@ -37,7 +37,7 @@ test_that("using broadcast variable", { }) test_that("without using broadcast variable", { - randomMat <- matrix(nrow=10, ncol=10, data=rnorm(100)) + randomMat <- matrix(nrow = 10, ncol = 10, data = rnorm(100)) useBroadcast <- function(x) { sum(randomMat * x) |