From 3ae789b8c138c44dbbed2ad922aa589fd299f596 Mon Sep 17 00:00:00 2001 From: Kevin Ushey Date: Thu, 31 Oct 2024 09:38:38 -0700 Subject: [PATCH] require R 4.5.0 (closes #1341) (#1342) --- ChangeLog | 4 ++++ inst/include/Rcpp/r/compat.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d488ae46c..f0da236d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2024-10-31 Kevin Ushey + + * inst/include/Rcpp/r/compat.h: Require R (>= 4.5.0) for new APIs + 2024-10-26 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll micro version to 1.0.13.4 diff --git a/inst/include/Rcpp/r/compat.h b/inst/include/Rcpp/r/compat.h index 218f3d7bc..720471b89 100644 --- a/inst/include/Rcpp/r/compat.h +++ b/inst/include/Rcpp/r/compat.h @@ -24,13 +24,13 @@ #include -#if R_VERSION >= R_Version(4, 4, 2) +#if R_VERSION >= R_Version(4, 5, 0) # define RCPP_STRING_PTR STRING_PTR_RO #else # define RCPP_STRING_PTR STRING_PTR #endif -#if R_VERSION >= R_Version(4, 4, 2) +#if R_VERSION >= R_Version(4, 5, 0) # define RCPP_VECTOR_PTR VECTOR_PTR_RO #else # define RCPP_VECTOR_PTR VECTOR_PTR