/* * R : A Computer Language for Statistical Data Analysis * Copyright (C) 2000-2013 The R Core Team. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, a copy is available at * http://www.r-project.org/Licenses/ */ #ifndef R_R_H #define R_R_H #ifndef USING_R # define USING_R #endif #ifndef NO_C_HEADERS #include #include /* Used by several packages, remove in due course */ #include /* for INT_MAX */ #include # if defined(__sun) # undef DO # undef DS # undef SO # undef SS # endif #endif #include #include /* R_FINITE, ISNAN, ... */ #include /* Rboolean type */ #include /* Rcomplex type */ #include /* PI, DOUBLE_EPS, etc */ #include /* error and warning */ #include /* R_alloc and S_alloc */ #include /* Rprintf etc */ #include /* RNG interface */ #include /* sort routines et al */ #include /* for PROBLEM ... Calloc, Realloc, Free, Memcpy, F77_xxxx */ typedef double Sfloat; typedef int Sint; #define SINT_MAX INT_MAX #define SINT_MIN INT_MIN #ifdef __cplusplus extern "C" { #endif void R_FlushConsole(void); /* always declared, but only usable under Win32 and Aqua */ void R_ProcessEvents(void); #ifdef Win32 void R_WaitEvent(void); #endif #ifdef __cplusplus } #endif #endif /* !R_R_H */