From f884029008008b977c931c0f7ec41cdb2d92a4a0 Mon Sep 17 00:00:00 2001 From: "Aaron A. King" Date: Tue, 21 May 2024 15:57:24 -0400 Subject: [PATCH] use R_NO_REMAP --- DESCRIPTION | 2 +- src/internal.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3344622..1cded96 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: phylopomp Type: Package Title: Phylodynamic Inference for POMP Models -Version: 0.11.0.0 +Version: 0.11.0.1 Date: 2024-05-21 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("Qianying"),family="Lin",role=c("aut"),comment=c(ORCID="0000-0001-8620-9910")) diff --git a/src/internal.h b/src/internal.h index 3c82bda..a621cb7 100644 --- a/src/internal.h +++ b/src/internal.h @@ -1,6 +1,8 @@ #ifndef _PHYLOPOMP_INTERNAL_H_ #define _PHYLOPOMP_INTERNAL_H_ +#define R_NO_REMAP + #include #include #include @@ -49,7 +51,7 @@ static inline int set_list_elem const char *name, int pos ) { SET_ELEMENT(list,pos,element); - SET_STRING_ELT(names,pos,mkChar(name)); + SET_STRING_ELT(names,pos,Rf_mkChar(name)); return ++pos; }