Skip to content

Commit 9fc1f57

Browse files
committed
refine this to allow R::[dpq]nbinom_mu but not rnbinom_mu
1 parent d99f451 commit 9fc1f57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
* inst/include/Rcpp/Rmath.h: As suggested by Kevin, test for R_VERSION
44
via #define to conditon on R >= 3.1.2 -- this does not require a hard
5-
constraint in DESCRIPTION yet on newer R will get R::[dpqr]nbinom_mu()
5+
constraint in DESCRIPTION yet on newer R will get R::[dpq]nbinom_mu()
66

77
2014-11-01 Dirk Eddelbuettel <edd@debian.org>
88

inst/NEWS.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
\itemize{
99
\item The \code{ListOf<T>} class gains the \code{.attr} and
1010
\code{.names} methods common to other Rcpp vectors.
11-
\item The \code{[dpqr]nbinom_mu()} scalar functions are now available via
11+
\item The \code{[dpq]nbinom_mu()} scalar functions are now available via
1212
the \code{R::} namespace when R 3.1.2 or newer is used.
1313
}
1414
\item Changes in Rcpp Attributes:

inst/include/Rcpp/Rmath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ namespace R {
135135
inline double dnbinom_mu(double x, double sz, double mu, int lg) { return ::Rf_dnbinom_mu(x, sz, mu, lg); }
136136
inline double pnbinom_mu(double x, double sz, double mu, int lt, int lg) { return ::Rf_pnbinom_mu(x, sz, mu, lt, lg); }
137137
inline double qnbinom_mu(double x, double sz, double mu, int lt, int lg) { return ::Rf_qnbinom_mu(x, sz, mu, lt, lg); }
138-
inline double rnbinom_mu(double sz, double mu) { return ::Rf_rnbinom_mu(sz, mu); }
138+
//inline double rnbinom_mu(double sz, double mu) { return ::Rf_rnbinom_mu(sz, mu); }
139139
#endif
140140

141141
/* Poisson Distribution */

0 commit comments

Comments
 (0)