Skip to contents

Returns True if the collect and take methods can be run locally (without any Spark executors).

Usage

isLocal(x)

# S4 method for SparkDataFrame
isLocal(x)

Arguments

x

A SparkDataFrame

Note

isLocal since 1.4.0

Examples

if (FALSE) {
sparkR.session()
path <- "path/to/file.json"
df <- read.json(path)
isLocal(df)
}