Skip to content

Commit 61f1ea5

Browse files
committed
unit test using sample runs under R 3.5.0 RNG setting
1 parent d37c8da commit 61f1ea5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
* DESCRIPTION (Version, Date): Roll minor version
44

5+
* inst/unitTests/runit.sugar.R: Set the sample() behaviour to R 3.5.0
6+
as R 3.6.0 has a breaking change (for the better)
7+
58
2019-03-13 Romain François <[email protected]>
69

710
* inst/include/Rcpp/macros/macros.h: Add UNPROTECT to please rchk

inst/unitTests/runit.sugar.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env r
22
# -*- mode: R; ess-indent-level: 4; indent-tabs-mode: nil; -*-
33
#
4-
# Copyright (C) 2010 - 2015 Dirk Eddelbuettel and Romain Francois
4+
# Copyright (C) 2010 - 2019 Dirk Eddelbuettel and Romain Francois
55
#
66
# This file is part of Rcpp.
77
#
@@ -22,6 +22,9 @@
2222

2323
if (.runThisTest) {
2424

25+
## Needed for a change in R 3.6.0 reducing a bias in very large samples
26+
suppressWarnings(RNGversion("3.5.0"))
27+
2528
.setUp <- Rcpp:::unitTestSetup("sugar.cpp")
2629

2730
test.sugar.abs <- function( ){

0 commit comments

Comments
 (0)