Skip to content

Commit 3644cd2

Browse files
committed
handle quotes consistently
1 parent a0cef56 commit 3644cd2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/RcppLdpath.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ canUseCXX0X <- function() { TRUE } # .Call( "canUseCXX0X", PACKAGE = "Rcpp" )
4747

4848
## Provide compiler flags -- i.e. -I/path/to/Rcpp.h
4949
RcppCxxFlags <- function(cxx0x=FALSE) {
50-
# path <- RcppLdPath()
50+
5151
path <- Rcpp.system.file( "include" )
5252
if (.Platform$OS.type=="windows") {
5353
path <- asBuildPath(path) # #nocov
5454
}
55-
paste0('-I"', path, if (cxx0x && canUseCXX0X()) '" -std=c++0x' else '')
55+
56+
paste0(
57+
'-I"', path, '"',
58+
if (cxx0x && canUseCXX0X()) ' -std=c++0x' else ''
59+
)
5660
}
5761

5862
## Shorter names, and call cat() directly

0 commit comments

Comments
 (0)