File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ sourceCpp <- function(file = "",
137
137
138
138
# prepare the command (output if we are in showOutput mode)
139
139
args <- c(
140
- r , " CMD" , " SHLIB" ,
140
+ " CMD" , " SHLIB" ,
141
141
if (windowsDebugDLL ) " -d" ,
142
142
if (rebuild ) " --preclean" ,
143
143
if (dryRun ) " --dry-run" ,
@@ -147,13 +147,13 @@ sourceCpp <- function(file = "",
147
147
shQuote(src )
148
148
)
149
149
150
- cmd <- paste(args , collapse = " " )
151
150
if (showOutput )
152
- cat(cmd , " \n " ) # #nocov
151
+ cat(paste(c( r , args ), collapse = " " ), " \n " ) # #nocov
153
152
154
153
# execute the build -- suppressWarnings b/c when showOutput = FALSE
155
154
# we are going to explicitly check for an error and print the output
156
- result <- suppressWarnings(system(cmd , intern = ! showOutput ))
155
+ so <- if (showOutput ) " " else TRUE
156
+ result <- suppressWarnings(system2(r , args , stdout = so , stderr = so ))
157
157
158
158
# check build results
159
159
if (! showOutput ) {
You can’t perform that action at this time.
0 commit comments