Skip to content

Commit

Permalink
[SPARKR] [MINOR] Get rid of a long line warning
Browse files Browse the repository at this point in the history
```
R/functions.R:74:1: style: lines should not be more than 100 characters.
            jc <- callJStatic("org.apache.spark.sql.functions", "lit", ifelse(class(x) == "Column", xjc, x))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com>

Closes #8297 from yu-iskw/minor-lint-r.

(cherry picked from commit b4b35f1)
Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
  • Loading branch information
yu-iskw authored and shivaram committed Aug 19, 2015
1 parent 9b42e24 commit 0a1385e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/pkg/R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ createFunctions()
#' @return Creates a Column class of literal value.
setMethod("lit", signature("ANY"),
function(x) {
jc <- callJStatic("org.apache.spark.sql.functions", "lit", ifelse(class(x) == "Column", x@jc, x))
jc <- callJStatic("org.apache.spark.sql.functions",
"lit",
ifelse(class(x) == "Column", x@jc, x))
column(jc)
})

Expand Down

0 comments on commit 0a1385e

Please sign in to comment.