Skip to content

Commit 82e151a

Browse files
kevinusheyeddelbuettel
authored andcommitted
avoid extraneous white-space in command
1 parent cd220c9 commit 82e151a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
2020-03-31 Dirk Eddelbuettel <[email protected]>
22

33
* docker/ci-dev/Dockerfile: Also install the 'codetools' package
4-
2020-03-31 Kevin Ushey <[email protected]>
4+
5+
2020-03-31 Kevin Ushey <[email protected]>
56

67
* R/Attributes.R: Fix for sourceCpp() on Windows w/R-devel
78

R/Attributes.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ sourceCpp <- function(file = "",
134134
src <- context$cppSourceFilename
135135

136136
# prepare the command (output if we are in showOutput mode)
137-
cmd <- paste(
137+
args <- c(
138138
r, "CMD", "SHLIB",
139139
if (windowsDebugDLL) "-d",
140140
if (rebuild) "--preclean",
@@ -145,6 +145,7 @@ sourceCpp <- function(file = "",
145145
shQuote(src)
146146
)
147147

148+
cmd <- paste(args, collapse = " ")
148149
if (showOutput)
149150
cat(cmd, "\n") # #nocov
150151

0 commit comments

Comments
 (0)