From 7effd2978d681ce475952c1b5f8b40f33cbf5d06 Mon Sep 17 00:00:00 2001 From: Joshi Date: Fri, 18 Mar 2016 12:36:24 -0700 Subject: [PATCH 1/2] r style changes --- R/pkg/R/context.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/pkg/R/context.R b/R/pkg/R/context.R index b0e67c8ad26ab..ecb3f5d428c27 100644 --- a/R/pkg/R/context.R +++ b/R/pkg/R/context.R @@ -105,7 +105,7 @@ parallelize <- function(sc, coll, numSlices = 1) { # TODO: support matrix, data frame, etc # nolint start # suppress lintr warning: Place a space before left parenthesis, except in a function call. - if ((!is.list(coll) && !is.vector(coll)) || is.data.frame(coll)) { + if ( (!is.list(coll) && !is.vector(coll)) || is.data.frame(coll)) { # nolint end if (is.data.frame(coll)) { message(paste("context.R: A data frame is parallelized by columns.")) From 0e158e336d9cbcac6975ff98fdb29bee4d193446 Mon Sep 17 00:00:00 2001 From: Joshi Date: Fri, 18 Mar 2016 12:42:58 -0700 Subject: [PATCH 2/2] r style changes --- R/pkg/R/context.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/pkg/R/context.R b/R/pkg/R/context.R index ecb3f5d428c27..b0e67c8ad26ab 100644 --- a/R/pkg/R/context.R +++ b/R/pkg/R/context.R @@ -105,7 +105,7 @@ parallelize <- function(sc, coll, numSlices = 1) { # TODO: support matrix, data frame, etc # nolint start # suppress lintr warning: Place a space before left parenthesis, except in a function call. - if ( (!is.list(coll) && !is.vector(coll)) || is.data.frame(coll)) { + if ((!is.list(coll) && !is.vector(coll)) || is.data.frame(coll)) { # nolint end if (is.data.frame(coll)) { message(paste("context.R: A data frame is parallelized by columns."))