@@ -28,7 +28,7 @@ sourceCpp <- function(file = "",
28
28
# resolve code into a file if necessary. also track the working
29
29
# directory to source the R embedded code chunk within
30
30
if (! missing(code )) {
31
- rWorkingDir <- getwd()
31
+ rWorkingDir <- getwd()
32
32
file <- tempfile(fileext = " .cpp" )
33
33
con <- file(file , open = " w" )
34
34
writeLines(code , con )
@@ -270,7 +270,7 @@ cppFunction <- function(code,
270
270
manipulate_this_type <- do.call( cppFunction , dots )
271
271
res <- manipulate_this_type()
272
272
if ( ! is.null(class ) ){
273
- class(res ) <- class
273
+ class(res ) <- class
274
274
}
275
275
res
276
276
}
@@ -281,7 +281,7 @@ sizeof <- .type_manipulate( "sizeof", "bytes" )
281
281
282
282
print.bytes <- function ( x , ... ){
283
283
writeLines( sprintf( " %d bytes (%d bits)" , x , 8 * x ) )
284
- invisible ( x )
284
+ invisible ( x )
285
285
}
286
286
287
287
# Evaluate a simple c++ expression
@@ -393,7 +393,7 @@ compileAttributes <- function(pkgdir = ".", verbose = getOption("verbose")) {
393
393
# built-in C++11 plugin
394
394
.plugins [[" cpp11" ]] <- function () {
395
395
if (getRversion() > = " 3.1" )
396
- list (env = list (USE_CXX1X = " " ))
396
+ list (env = list (USE_CXX1X = " 0 " ))
397
397
else
398
398
list (env = list (PKG_CXXFLAGS = " -std=c++11" ))
399
399
}
@@ -521,7 +521,7 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {
521
521
522
522
# Lookup a plugin
523
523
.findPlugin <- function (pluginName ) {
524
-
524
+
525
525
plugin <- .plugins [[pluginName ]]
526
526
if (is.null(plugin ))
527
527
stop(" Inline plugin '" , pluginName , " ' could not be found " ,
@@ -600,7 +600,7 @@ sourceCppFunction <- function(func, isVoid, dll, symbol) {
600
600
# if there is no buildEnv from a plugin then use the Rcpp plugin
601
601
if (length(buildEnv ) == 0 ) {
602
602
buildEnv <- inlineCxxPlugin()$ env
603
- }
603
+ }
604
604
605
605
# set CLINK_CPPFLAGS based on the LinkingTo dependencies
606
606
buildEnv $ CLINK_CPPFLAGS <- .buildClinkCppFlags(linkingToPackages )
0 commit comments