Skip to content

Commit 39edf69

Browse files
authored
Merge pull request #610 from nathan-russell/feature/sample
Sugar function sample with unit tests
2 parents 8e3076d + 166b750 commit 39edf69

File tree

6 files changed

+852
-0
lines changed

6 files changed

+852
-0
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2016-12-10 Nathan Russell <[email protected]>
2+
3+
* inst/include/Rcpp/sugar/functions/sample.h: New function
4+
sample()
5+
* inst/include/Rcpp/sugar/functions/functions.h: Idem
6+
* inst/unitTests/cpp/sugar.cpp: Unit tests for sample()
7+
* inst/unitTests/runit.sugar.R: Idem
8+
19
2016-12-10 Dirk Eddelbuettel <[email protected]>
210

311
* R/loadRcppModules.R: Added #nocov tags

inst/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
\item Date and Datetime object and vector now have format methods and
1313
\code{operator<<} support (PR\ghpr{599})
1414
}
15+
\item Changes in Rcpp Sugar:
16+
\itemize{
17+
\item Added new Sugar function \code{sample()} (Nathan Russell in
18+
\ghpr{610}).
19+
}
1520
\item Changes in Rcpp unit tests
1621
\itemize{
1722
\item Added Environment::find unit tests and an Environment::get(Symbol)

inst/include/Rcpp/sugar/functions/functions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,7 @@
8686

8787
#include <Rcpp/sugar/functions/rowSums.h>
8888

89+
#include <Rcpp/sugar/functions/sample.h>
90+
8991
#endif
9092

0 commit comments

Comments
 (0)