[Rcpp-commits] r1590 - pkg/Rcpp
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Jun 18 10:27:41 CEST 2010
Author: romain
Date: 2010-06-18 10:27:41 +0200 (Fri, 18 Jun 2010)
New Revision: 1590
Modified:
pkg/Rcpp/TODO
Log:
TODO: min, max, pmin, pmax
Modified: pkg/Rcpp/TODO
===================================================================
--- pkg/Rcpp/TODO 2010-06-18 07:45:36 UTC (rev 1589)
+++ pkg/Rcpp/TODO 2010-06-18 08:27:41 UTC (rev 1590)
@@ -45,8 +45,13 @@
Syntactic sugar
- o duplicated, unique, count, sum, rep, head, tail
+ o duplicated, unique, count, sum, rep, head, tail, pmin, pmax
+ o min, max with specialization of the binary operators, so that we can do
+ things like this lazily:
+
+ min( x ) < 4
+
o for matrices: we first need CRTP with matrix interface, so we need to
make Matrix inherit from MatrixBase and make MatrixBase a template that
implements CRTP and a matrix interface:
@@ -73,4 +78,26 @@
xx[ range(0,9) ] = seq_len(10 ) ;
+Testing
+ o we need to update the doRUnit.R file and replace :
+
+ ## stop() if there are any failures i.e. FALSE to unit test.
+ ## This will cause R CMD check to return error and stop
+ err <- getErrors(tests)
+ if( (err$nFail + err$nErr) > 0) {
+ stop( sprintf( "unit test problems: %d failures, %d errors", err$nFail, err$nErr) )
+ } else{
+ success <- err$nTestFunc - err$nFail - err$nErr - err$nDeactivated
+ cat( sprintf( "%d / %d\n", success, err$nTestFunc ) )
+ }
+
+ by something that extract information from "err". This is needed because
+ on win builder or cran checks, we only ever get the last 13 lines of
+ output. So we need to make the best use of these 13 lines
+
+ o Testing has become slow. That would be good to find ways to make it faster
+ such as combine multiple functions in a single cxxfunction call or alternatively
+ make another package (perhaps internal to this one that would contain
+ test cases)
+
More information about the Rcpp-commits
mailing list