Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / include / Rembedded.h @ 2486

History | View | Annotate | Download (2 kB)

1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  Copyright (C) 2006-8  The R Core Team.
4
 *
5
 *  This program is free software; you can redistribute it and/or modify
6
 *  it under the terms of the GNU General Public License as published by
7
 *  the Free Software Foundation; either version 2 of the License, or
8
 *  (at your option) any later version.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
18
 */
19

    
20
/* A header for use with alternative front-ends. Not formally part of
21
 * the API so subject to change without notice. */
22

    
23
#ifndef REMBEDDED_H_
24
#define REMBEDDED_H_
25

    
26
#ifdef __cplusplus
27
extern "C" {
28
#endif
29

    
30
#include <R_ext/Boolean.h>
31

    
32
extern int Rf_initEmbeddedR(int argc, char *argv[]);
33
extern void Rf_endEmbeddedR(int fatal);
34

    
35
/* From here on down can be helpful in writing tailored startup and
36
   termination code */
37

    
38
#ifndef LibExtern
39
# define LibExtern extern
40
#endif
41

    
42
int Rf_initialize_R(int ac, char **av);
43
void setup_Rmainloop(void);
44
extern void R_ReplDLLinit(void);
45
extern int R_ReplDLLdo1(void);
46

    
47
void R_setStartTime(void);
48
extern void R_RunExitFinalizers(void);
49
extern void CleanEd(void);
50
extern void Rf_KillAllDevices(void);
51
LibExtern int R_DirtyImage;
52
extern void R_CleanTempDir(void);
53
LibExtern char *R_TempDir;    
54
extern void R_SaveGlobalEnv(void);
55

    
56

    
57
#ifdef unix
58
void fpu_setup(Rboolean start);
59
#endif
60

    
61
#ifdef Win32
62
extern char *getDLLVersion(void), *getRUser(void), *get_R_HOME(void);
63
extern void setup_term_ui(void);
64
LibExtern int UserBreak;
65
extern Rboolean AllDevicesKilled;
66
extern void editorcleanall(void);
67
extern int GA_initapp(int, char **);
68
extern void GA_appcleanup(void);
69
extern void readconsolecfg(void);
70
#endif
71

    
72
#ifdef __cplusplus
73
}
74
#endif
75

    
76
#endif /* REMBEDDED_H_ */