Skip to content

Commit

Permalink
add default, comment
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcheung committed Jan 27, 2017
1 parent 294ce99 commit 322b760
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/pkg/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,14 @@ varargsToJProperties <- function(...) {
launchScript <- function(script, combinedArgs, wait = FALSE) {
if (.Platform$OS.type == "windows") {
scriptWithArgs <- paste(script, combinedArgs, sep = " ")
# on Windows, intern = F seems to mean output to the console. (documentation on this is missing)
shell(scriptWithArgs, translate = TRUE, wait = wait, intern = wait) # nolint
} else {
system2(script, combinedArgs, wait = wait)
# http://stat.ethz.ch/R-manual/R-devel/library/base/html/system2.html
# stdout = F means discard output
# stdout = "" means to its console (default)
# Note that the console of this child process might not be the same as the running R process.
system2(script, combinedArgs, stdout = "", wait = wait)
}
}

Expand Down

0 comments on commit 322b760

Please sign in to comment.