@@ -764,7 +764,7 @@ makeNodePSOCK <- function(worker = getOption2("parallelly.localhost.hostname", "
764
764
}
765
765
766
766
if (length(socketOptions ) == 1L ) {
767
- code <- sprintf(" options(socketOptions = \" %s\" )" , socketOptions )
767
+ code <- sprintf(" options(socketOptions= \" %s\" )" , socketOptions )
768
768
rscript_expr <- c(" -e" , shQuote(code , type = rscript_sh [1 ]))
769
769
rscript_args_internal <- c(rscript_args_internal , rscript_expr )
770
770
}
@@ -830,7 +830,7 @@ makeNodePSOCK <- function(worker = getOption2("parallelly.localhost.hostname", "
830
830
tryCatch({
831
831
parse(text = code )
832
832
}, error = function (ex ) {
833
- stopf(" Argument 'rscript_envs' appears to contain invalid values: %s" , paste(sprintf(" %s=%s" , sQuote(names ), sQuote(rscript_envs )), collapse = " , " ))
833
+ stopf(" Argument 'rscript_envs' appears to contain invalid values: %s" , paste(sprintf(" %s=%s" , sQuote(names ), sQuote(rscript_envs )), collapse = " ," ))
834
834
})
835
835
rscript_args_internal <- c(rscript_args_internal , " -e" , shQuote(code , type = rscript_sh [1 ]))
836
836
}
@@ -854,7 +854,7 @@ makeNodePSOCK <- function(worker = getOption2("parallelly.localhost.hostname", "
854
854
# # .{slave,work}RSOCK() command already specified?
855
855
if (! any(grepl(" parallel:::[.](slave|work)RSOCK[(][)]" , rscript_args ))) {
856
856
# # In R (>= 4.1.0), parallel:::.slaveRSOCK() was renamed to .workRSOCK()
857
- cmd <- " workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()"
857
+ cmd <- " workRSOCK<- tryCatch(parallel:::.workRSOCK,error=function(e)parallel:::.slaveRSOCK);workRSOCK()"
858
858
rscript_args_internal <- c(rscript_args_internal , " -e" , shQuote(cmd , type = rscript_sh [1 ]))
859
859
}
860
860
0 commit comments