Skip to content

Commit 8926946

Browse files
authored
Remove access to Rf_rnbeta (#1419)
* Do not access Rf_rnbeta * Roll micro version and date * Comment-out an #undef * Micro whitespace edit following rebase
1 parent 3691c01 commit 8926946

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
* inst/tinytest/test_system.R: Wrap suppressMessages() around three
44
tests for long-obsolete linker and compiler flags
55

6+
2025-12-10 Dirk Eddelbuettel <edd@debian.org>
7+
8+
* DESCRIPTION (Version, Date): Roll micro version and date
9+
* inst/include/Rcpp/config.h: Idem
10+
11+
* inst/include/Rcpp/Rmath.h: Do not access Rf_rnbeta
12+
* inst/include/Rcpp/sugar/undoRmath.h: Remove #undef
13+
614
2025-12-06 Dirk Eddelbuettel <edd@debian.org>
715

816
* DESCRIPTION (Version, Date): Roll micro version and date

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 1.1.0.8
4-
Date: 2025-12-06
3+
Version: 1.1.0.9
4+
Date: 2025-12-10
55
Authors@R: c(person("Dirk", "Eddelbuettel", role = c("aut", "cre"), email = "edd@debian.org",
66
comment = c(ORCID = "0000-0001-6419-907X")),
77
person("Romain", "Francois", role = "aut",

inst/include/Rcpp/Rmath.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2-
//
1+
32
// Rmath.h: Rcpp R/C++ interface class library -- Wrappers for R's Rmath API
43
//
5-
// Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois
4+
// Copyright (C) 2012-2025 Dirk Eddelbuettel and Romain Francois
65
//
76
// This file is part of Rcpp.
87
//
@@ -160,7 +159,7 @@ namespace R {
160159
inline double dnbeta(double x, double a, double b, double ncp, int lg) { return ::Rf_dnbeta(x, a, b, ncp, lg); }
161160
inline double pnbeta(double x, double a, double b, double ncp, int lt, int lg) { return ::Rf_pnbeta(x, a, b, ncp, lt, lg); }
162161
inline double qnbeta(double p, double a, double b, double ncp, int lt, int lg) { return ::Rf_qnbeta(p, a, b, ncp, lt, lg); }
163-
inline double rnbeta(double a, double b, double np) { return ::Rf_rnbeta(a, b, np); }
162+
//inline double rnbeta(double a, double b, double np) { return ::Rf_rnbeta(a, b, np); }
164163

165164
/* Non-central F Distribution */
166165
inline double dnf(double x, double df1, double df2, double ncp, int lg) { return ::Rf_dnf(x, df1, df2, ncp, lg); }

inst/include/Rcpp/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define RCPP_VERSION_STRING "1.1.0"
3232

3333
// the current source snapshot (using four components, if a fifth is used in DESCRIPTION we ignore it)
34-
#define RCPP_DEV_VERSION RcppDevVersion(1,1,0,8)
35-
#define RCPP_DEV_VERSION_STRING "1.1.0.8"
34+
#define RCPP_DEV_VERSION RcppDevVersion(1,1,0,9)
35+
#define RCPP_DEV_VERSION_STRING "1.1.0.9"
3636

3737
#endif

inst/include/Rcpp/sugar/undoRmath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
#undef rhyper
147147
#undef rlnorm
148148
#undef rlogis
149-
#undef rnbeta
149+
//#undef rnbeta
150150
#undef rnbinom
151151
#undef rnchisq
152152
#undef rnf

0 commit comments

Comments
 (0)