Skip to content

Commit

Permalink
remove cause for warning when userdata is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Jul 24, 2023
1 parent 47ab8d0 commit 04b510a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: pomp
Type: Package
Title: Statistical Inference for Partially Observed Markov Processes
Version: 5.3.1.1
Date: 2023-07-23
Version: 5.3.1.2
Date: 2023-07-24
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="kingaa@umich.edu",comment=c(ORCID="0000-0001-6159-3207")),
person(given=c("Edward","L."),family="Ionides",role="aut",comment=c(ORCID="0000-0002-4190-0174")) ,
person(given="Carles",family="Bretó",role="aut",comment=c(ORCID="0000-0003-4695-4902")),
Expand Down
4 changes: 0 additions & 4 deletions src/userdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ static SEXP __pomp_ptr_userdata;
#define USERDATA (__pomp_ptr_userdata)

void set_pomp_userdata (SEXP userdata) {
#if (R_VERSION < 262659) // before 4.2.3
if (LENGTH(userdata) > 0) {
USERDATA = userdata;
} else {
USERDATA = R_NilValue;
}
#else
USERDATA = userdata;
#endif
}

const SEXP get_userdata (const char *name) {
Expand Down

0 comments on commit 04b510a

Please sign in to comment.