RAPI
|
00001 /* 00002 * R : A Computer Language for Statistical Data Analysis 00003 * Copyright (C) 2006-2016 The R Core Team. 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, a copy is available at 00017 * https://www.R-project.org/Licenses/ 00018 */ 00019 00020 /* A header for use with alternative front-ends. Not formally part of 00021 * the API so subject to change without notice. */ 00022 00023 #ifndef REMBEDDED_H_ 00024 #define REMBEDDED_H_ 00025 00026 #include <R_ext/Boolean.h> 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 extern int Rf_initEmbeddedR(int argc, char *argv[]); 00033 extern void Rf_endEmbeddedR(int fatal); 00034 00035 /* From here on down can be helpful in writing tailored startup and 00036 termination code */ 00037 00038 #ifndef LibExtern 00039 # define LibExtern extern 00040 #endif 00041 00042 int Rf_initialize_R(int ac, char **av); 00043 void setup_Rmainloop(void); 00044 extern void R_ReplDLLinit(void); 00045 extern int R_ReplDLLdo1(void); 00046 00047 void R_setStartTime(void); 00048 extern void R_RunExitFinalizers(void); 00049 extern void CleanEd(void); 00050 extern void Rf_KillAllDevices(void); 00051 LibExtern int R_DirtyImage; 00052 extern void R_CleanTempDir(void); 00053 LibExtern char *R_TempDir; 00054 extern void R_SaveGlobalEnv(void); 00055 00056 #ifdef _WIN32 00057 extern char *getDLLVersion(void), *getRUser(void), *get_R_HOME(void); 00058 extern void setup_term_ui(void); 00059 LibExtern int UserBreak; 00060 extern Rboolean AllDevicesKilled; 00061 extern void editorcleanall(void); 00062 extern int GA_initapp(int, char **); 00063 extern void GA_appcleanup(void); 00064 extern void readconsolecfg(void); 00065 #else 00066 void fpu_setup(Rboolean start); 00067 #endif 00068 00069 #ifdef __cplusplus 00070 } 00071 #endif 00072 00073 #endif /* REMBEDDED_H_ */