Repository: spark
Updated Branches:
  refs/heads/branch-2.1 1d569f684 -> b51ce9377


[R][BACKPORT-2.2] backport lint fix

## What changes were proposed in this pull request?

backport part of the commit that addresses lintr issue

Author: Felix Cheung <[email protected]>

Closes #21325 from felixcheung/rlintfix22.

(cherry picked from commit 8c223b651c3330e6b7f5bcf24b9911b0c32dc7b9)
Signed-off-by: Felix Cheung <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/b51ce937
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/b51ce937
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/b51ce937

Branch: refs/heads/branch-2.1
Commit: b51ce9377d44d6b9ec2d8b8284a7e4c24b3fd962
Parents: 1d569f6
Author: Felix Cheung <[email protected]>
Authored: Tue May 15 19:31:14 2018 -0700
Committer: Felix Cheung <[email protected]>
Committed: Tue May 15 19:31:34 2018 -0700

----------------------------------------------------------------------
 R/pkg/R/sparkR.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b51ce937/R/pkg/R/sparkR.R
----------------------------------------------------------------------
diff --git a/R/pkg/R/sparkR.R b/R/pkg/R/sparkR.R
index 6c0392a..bddd75b 100644
--- a/R/pkg/R/sparkR.R
+++ b/R/pkg/R/sparkR.R
@@ -196,7 +196,7 @@ sparkR.sparkContext <- function(
 
     # Don't use readString() so that we can provide a useful
     # error message if the R and Java versions are mismatched.
-    authSecretLen = readInt(f)
+    authSecretLen <- readInt(f)
     if (length(authSecretLen) == 0 || authSecretLen == 0) {
       stop("Unexpected EOF in JVM connection data. Mismatched versions?")
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to