Skip to content

Commit

Permalink
Update news
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 1, 2024
1 parent f69c265 commit a462da7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# rxode2 (development version)

- Add `getRxNpars` to api. This allows the development version of
`babelmixr2` to better check what model is loaded and unload/reload
as necessary.

# rxode2 3.0.2

- Bug fix for `api`, the censoring function pointer has been updated
Expand Down
7 changes: 4 additions & 3 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ SEXP _rxode2_rxode2Ptr(void) {
SEXP rxode2getRxNobs = PROTECT(R_MakeExternalPtrFn((DL_FUNC)&getRxNobs, R_NilValue, R_NilValue)); pro++;
SEXP rxode2getRxNobs2 = PROTECT(R_MakeExternalPtrFn((DL_FUNC)&getRxNobs2, R_NilValue, R_NilValue)); pro++;
SEXP rxode2getOpIndSolve = PROTECT(R_MakeExternalPtrFn((DL_FUNC)&getOpIndSolve, R_NilValue, R_NilValue)); pro++;
SEXP rxode2getRxNpars = PROTECT(R_MakeExternalPtrFn((DL_FUNC)&getRxNpars,
R_NilValue, R_NilValue)); pro++;


#define nVec 49
Expand Down Expand Up @@ -472,7 +474,7 @@ SEXP _rxode2_rxode2Ptr(void) {
SET_VECTOR_ELT(ret, 45, rxode2getRxNobs);
SET_VECTOR_ELT(ret, 46, rxode2getRxNobs2);
SET_VECTOR_ELT(ret, 47, rxode2getOpIndSolve);
SET_VECTOR_ELT(ret, 48, getRxNpars);
SET_VECTOR_ELT(ret, 48, rxode2getRxNpars);

SEXP retN = PROTECT(Rf_allocVector(STRSXP, nVec)); pro++;
SET_STRING_ELT(retN, 0, Rf_mkChar("rxode2rxRmvnSEXP"));
Expand Down Expand Up @@ -523,8 +525,7 @@ SEXP _rxode2_rxode2Ptr(void) {
SET_STRING_ELT(retN, 45, Rf_mkChar("rxode2getRxNobs"));
SET_STRING_ELT(retN, 46, Rf_mkChar("rxode2getRxNobs2"));
SET_STRING_ELT(retN, 47, Rf_mkChar("rxode2getOpIndSolve"));
SET_VECTOR_ELT(retN, 48, Rf_mkChar("rxode2getRxNpars"));

SET_STRING_ELT(retN, 48, Rf_mkChar("rxode2getRxNpars"));
#undef nVec

// Set the names attribute of the list
Expand Down

0 comments on commit a462da7

Please sign in to comment.