Skip to content

Commit 935d796

Browse files
committed
Fix typo
1 parent 3057844 commit 935d796

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

R/pkg/R/client.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ determineSparkSubmitBin <- function() {
4545

4646
# R supports both file separator in the file path (Unix : / and Windows: \) irrespective
4747
# of the operating system. So, this should be manaully changed.
48-
determinefileSeperator <- function() {
48+
determinefileSeparator <- function() {
4949
if (.Platform$OS.type == "windows") {
50-
fileSeperator <- "\\"
50+
fileSeparator <- "\\"
5151
} else {
52-
fileSeperator <- .Platform$file.sep
52+
fileSeparator <- .Platform$file.sep
5353
}
54-
fileSeperator
54+
fileSeparator
5555
}
5656

5757
generateSparkSubmitArgs <- function(args, sparkHome, jars, sparkSubmitOpts, packages) {
@@ -74,8 +74,8 @@ generateSparkSubmitArgs <- function(args, sparkHome, jars, sparkSubmitOpts, pack
7474
launchBackend <- function(args, sparkHome, jars, sparkSubmitOpts, packages) {
7575
sparkSubmitBinName <- determineSparkSubmitBin()
7676
if (sparkHome != "") {
77-
fileSeperator <- determinefileSeperator()
78-
sparkSubmitBin <- file.path(sparkHome, "bin", sparkSubmitBinName, fsep = fileSeperator)
77+
fileSeparator <- determinefileSeparator()
78+
sparkSubmitBin <- file.path(sparkHome, "bin", sparkSubmitBinName, fsep = fileSeparator)
7979
} else {
8080
sparkSubmitBin <- sparkSubmitBinName
8181
}

0 commit comments

Comments
 (0)