| 38856 |
ripley |
1 |
/*
|
|
|
2 |
* R : A Computer Language for Statistical Data Analysis
|
| 89942 |
luke |
3 |
* Copyright (C) 2006-2026 The R Core Team.
|
| 38856 |
ripley |
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
|
| 42308 |
ripley |
16 |
* along with this program; if not, a copy is available at
|
| 68949 |
ripley |
17 |
* https://www.R-project.org/Licenses/
|
| 38856 |
ripley |
18 |
*/
|
|
|
19 |
|
| 89942 |
luke |
20 |
/* A header for use with alternative front-ends. Part of the
|
|
|
21 |
* experimental embedding API so subject to change without notice. */
|
| 38856 |
ripley |
22 |
|
|
|
23 |
#ifndef REMBEDDED_H_
|
|
|
24 |
#define REMBEDDED_H_
|
|
|
25 |
|
| 70042 |
ripley |
26 |
#include <R_ext/Boolean.h>
|
|
|
27 |
|
| 38856 |
ripley |
28 |
#ifdef __cplusplus
|
|
|
29 |
extern "C" {
|
|
|
30 |
#endif
|
|
|
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);
|
| 89789 |
luke |
44 |
void run_Rmainloop(void);
|
| 38856 |
ripley |
45 |
extern void R_ReplDLLinit(void);
|
| 44217 |
ripley |
46 |
extern int R_ReplDLLdo1(void);
|
| 38856 |
ripley |
47 |
|
|
|
48 |
void R_setStartTime(void);
|
| 44217 |
ripley |
49 |
extern void R_RunExitFinalizers(void);
|
|
|
50 |
extern void CleanEd(void);
|
|
|
51 |
extern void Rf_KillAllDevices(void);
|
| 38856 |
ripley |
52 |
LibExtern int R_DirtyImage;
|
| 44217 |
ripley |
53 |
extern void R_CleanTempDir(void);
|
| 41862 |
ripley |
54 |
LibExtern char *R_TempDir;
|
| 38856 |
ripley |
55 |
extern void R_SaveGlobalEnv(void);
|
|
|
56 |
|
| 69887 |
ripley |
57 |
#ifdef _WIN32
|
| 44217 |
ripley |
58 |
extern char *getDLLVersion(void), *getRUser(void), *get_R_HOME(void);
|
| 83755 |
kalibera |
59 |
extern void freeRUser(char *), free_R_HOME(char *);
|
| 38856 |
ripley |
60 |
extern void setup_term_ui(void);
|
|
|
61 |
LibExtern int UserBreak;
|
|
|
62 |
extern Rboolean AllDevicesKilled;
|
| 44217 |
ripley |
63 |
extern void editorcleanall(void);
|
| 38856 |
ripley |
64 |
extern int GA_initapp(int, char **);
|
| 44217 |
ripley |
65 |
extern void GA_appcleanup(void);
|
|
|
66 |
extern void readconsolecfg(void);
|
| 69887 |
ripley |
67 |
#else
|
|
|
68 |
void fpu_setup(Rboolean start);
|
| 38856 |
ripley |
69 |
#endif
|
|
|
70 |
|
|
|
71 |
#ifdef __cplusplus
|
|
|
72 |
}
|
|
|
73 |
#endif
|
|
|
74 |
|
|
|
75 |
#endif /* REMBEDDED_H_ */
|