Skip to content

Commit a37de68

Browse files
bring master's changes
2 parents a666e73 + 820e15b commit a37de68

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
33
Version: 0.10.6.1
4-
Date: $Date$
4+
Date: 2013-11-13
55
Author: Dirk Eddelbuettel and Romain Francois, with contributions
66
by Douglas Bates, John Chambers and JJ Allaire
77
Maintainer: Dirk Eddelbuettel <edd@debian.org>

inst/unitTests/cpp/wrap.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,14 @@ List multimap_string_generic(){
137137
}
138138

139139
// [[Rcpp::export]]
140-
SEXP null_const_char(){ const char *p = NULL; return wrap(p); }
140+
SEXP null_const_char(){
141+
const char *p = NULL; return wrap(p);
142+
}
141143

142144
// [[Rcpp::export]]
143-
SEXP nonnull_const_char(){ const char *p = "foo"; return wrap(p) ; }
145+
SEXP nonnull_const_char(){
146+
const char *p = "foo"; return wrap(p) ;
147+
}
144148

145149
// [[Rcpp::export]]
146150
IntegerVector unordered_map_string_int(){

vignettes/Rcpp-unitTests.Rnw

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ library(RUnit)
3030
<<unitTesting,echo=FALSE,print=FALSE>>=
3131
pkg <- "Rcpp"
3232
33-
## Make sure we run all tests for the vignette
34-
Sys.setenv("RunAllRcppTests"="yes")
33+
## Check the environemnt variable to see if all tests should be run
34+
if (Sys.getenv("RunAllRcppTests") != "yes") {
35+
writeLines("The environment variable 'RunAllRcppTests' was not set to 'yes', so skipping some tests.")
36+
}
3537
3638
if (file.exists("unitTests-results")) unlink("unitTests-results", recursive = TRUE)
3739
dir.create("unitTests-results")
@@ -61,7 +63,7 @@ results <- "unitTests-results/Rcpp-unitTests.txt"
6163
if (file.exists(results)) {
6264
writeLines(readLines(results))
6365
} else{
64-
writeLines( "unit test results not available" )
66+
writeLines("Unit test results not available")
6567
}
6668
@
6769

0 commit comments

Comments
 (0)