File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,8 @@ before_install:
55 - chmod 755 ./travis-tool.sh
66 - ./travis-tool.sh bootstrap
77 - ./travis-tool.sh github_package hadley/testthat
8- - if [ "$RCPP" = "Rcpp" ]; then ./travis-tool.sh github_package RcppCore/Rcpp; fi
9- - if [ "$RCPP" = "Rcpp11" ]; then ./travis-tool.sh github_package Rcpp11/Rcpp11; ./travis-tool.sh github_package Rcpp11/attributes; fi
10-
8+ - ./travis-tool.sh github_package RcppCore/Rcpp
9+
1110script :
1211 - R CMD INSTALL .
1312 - cd tests
@@ -18,6 +17,4 @@ notifications:
1817 on_success : change
1918 on_failure : change
2019
21- env :
22- - RCPP=Rcpp
23- - RCPP=Rcpp11
20+
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ defaultNumThreads()
3939}
4040
4141\e xamples{
42- \d ontrun{
42+ library(RcppParallel)
43+
4344setThreadOptions(numThreads = 4)
4445
4546defaultNumThreads()
4647}
47- }
4848
Original file line number Diff line number Diff line change 1- require( methods )
2- require( RcppParallel )
3- require( testthat )
1+ library( testthat )
2+ library( Rcpp )
3+ library( RcppParallel )
44
5- RCPP <- Sys.getenv( " RCPP" )
6- if ( RCPP == " Rcpp" ){
7- message( " testing against Rcpp" )
8- require(Rcpp )
9- } else if ( RCPP == " Rcpp11" ){
10- message( " testing against Rcpp11" )
11- require(attributes )
12- } else {
13- stop( " Rcpp implementation not setup, please set the $RCPP environment variable" )
14- }
155
16- test_dir( " testthat " )
6+ test_check( " RcppParallel " )
177
You can’t perform that action at this time.
0 commit comments