pomp
Inference for partially observed Markov processes
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
backports.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3#ifndef _POMP_BACKPORTS_H_
4#define _POMP_BACKPORTS_H_
5
6#include <Rversion.h>
7
8// Some backports needed for older versions of R.
9// Taken from
10// https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Some-backports
11// These are not necessarily all used in the package code.
12
13#if R_VERSION < R_Version(4, 5, 0)
14
15# define isDataFrame(x) Rf_isFrame(x)
16# define R_ClosureFormals(x) FORMALS(x)
17# define R_ClosureEnv(x) CLOENV(x)
18# define R_ParentEnv(x) ENCLOS(x)
19
20#endif
21
22#endif