File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Package: Rcpp
22Title: Seamless R and C++ Integration
3- Version: 0.10.1.1
3+ Version: 0.10.1.2
44Date: $Date$
55Author: Dirk Eddelbuettel and Romain Francois, with contributions
66 by Douglas Bates, John Chambers and JJ Allaire
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ if (.runThisTest) {
2525.setUp <- function (){
2626 suppressMessages( require( datasets ) )
2727 data( iris )
28- sourceCpp( system.file( " unitTests/cpp/DataFrame.cpp" , package = " Rcpp" ) )
28+ # sourceCpp( system.file( "unitTests/cpp/DataFrame.cpp" , package = "Rcpp" ) )
29+ sourceCpp(file.path(pathRcppTests , " cpp/DataFrame.cpp" ))
2930}
3031
3132test.DataFrame.FromSEXP <- function () {
@@ -79,7 +80,7 @@ test.DataFrame.CreateTwo.stringsAsFactors <- function() {
7980}
8081
8182test.DataFrame.nrows <- function (){
82- checkEquals( DataFrame_nrows( iris ), nrow(iris ) )
83+ checkEquals( DataFrame_nrows( iris ), nrow(iris ) )
8384}
8485
8586
Original file line number Diff line number Diff line change 1818# You should have received a copy of the GNU General Public License
1919# along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
2020
21- .runThisTest <- Sys.getenv(" RunAllRcppTests" ) == " yes"
21+ .runThisTest <- FALSE # # Sys.getenv("RunAllRcppTests") == "yes"
2222
2323if (.runThisTest ) {
2424
2525.setUp <- function () {
26- sourceCpp( system.file( " unitTests/cpp/Vector.cpp" , package = " Rcpp" ) )
26+ # sourceCpp( system.file( "unitTests/cpp/Vector.cpp", package = "Rcpp" ) )
27+ sourceCpp(file.path(pathRcppTests , " cpp/Vector.cpp" ))
2728}
2829
2930test.RawVector <- function (){
Original file line number Diff line number Diff line change 2222
2323if (.runThisTest ) {
2424
25- .setUp <- function (){
26- sourceCpp( system.file( " unitTests/cpp/sugar.cpp" , package = " Rcpp" ) )
25+ .setUp <- function () {
26+ # sourceCpp( system.file( "unitTests/cpp/sugar.cpp", package = "Rcpp") )
27+ sourceCpp(file.path(pathRcppTests , " cpp/sugar.cpp" ))
2728}
2829
2930test.sugar.abs <- function ( ){
@@ -664,12 +665,12 @@ test.sugar.signif <- function() {
664665
665666test.RangeIndexer <- function (){
666667 x <- rnorm(10 )
667- checkEquals( runit_RangeIndexer(x ), max(x [1 : 5 ]) )
668+ checkEquals( runit_RangeIndexer(x ), max(x [1 : 5 ]) )
668669}
669670
670671test.self_match <- function (){
671672 x <- sample( letters , 1000 , replace = TRUE )
672- checkEquals( runit_self_match(x ), match(x ,unique(x )) )
673+ checkEquals( runit_self_match(x ), match(x ,unique(x )) )
673674}
674675
675676test.table <- function (){
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ if (require("RUnit", quietly = TRUE)) {
4141
4242 pkg <- " Rcpp" # code below for Rcpp
4343 require(pkg , character.only = TRUE )
44- path <- system.file(" unitTests" , package = pkg )
45- stopifnot(file.exists(path ), file.info(path.expand(path ))$ isdir )
44+ pathRcppTests < <- system.file(" unitTests" , package = pkg )
45+ stopifnot(file.exists(pathRcppTests ), file.info(path.expand(pathRcppTests ))$ isdir )
4646
4747 # # without this, we get unit test failures
4848 Sys.setenv( R_TESTS = " " )
@@ -58,7 +58,7 @@ if (require("RUnit", quietly = TRUE)) {
5858
5959 Rcpp.unit.test.output.dir <- getwd()
6060
61- source(file.path(path , " runTests.R" ), echo = TRUE )
61+ source(file.path(pathRcppTests , " runTests.R" ), echo = TRUE )
6262
6363} else {
6464 print(" package RUnit not available, cannot run unit tests" )
You can’t perform that action at this time.
0 commit comments