Displaying 5 results from an estimated 5 matches for "end_rmainloop".
2006 Aug 31
2
stop R mainloop without calling exit(1)
Hello,
I'm trying to make my Java application work with R, which involves
sending and retrieving data and to run R functions from within the
Java application. I also need to have "live interaction" with R, to
show the R console output (e.g. warnings and print) and to enable the
user to enter input when a function asks for it.
Therefore I created a simple R console in Java using JRI
2005 Sep 22
1
Rf_initEmbeddedR in Windows
...rror come from the following declaration of functions calling
into R.dll and the missing of R.lib corresponding to R.dll.
extern char *getDLLVersion();
extern void R_DefParams(Rstart);
extern void R_SetParams(Rstart);
extern void setup_term_ui(void);
extern void ProcessEvents(void);
extern void end_Rmainloop(void), R_ReplDLLinit(void);
extern int R_ReplDLLdo1();
extern void run_Rmainloop(void);
Then I google it, I find some solution of Borland C++ Builder, i.e. using
implib to generate R.lib. The only place where I can find implib is at
(http://www.geocities.com/SiliconValley/5806/download.htm#IMP...
1999 Jul 15
0
.Last is usually not called (PR#227)
...n
is EOF on the console or input:
> .Last <- function() cat("ran .Last\n")
> q("no")
returns to the shell.
> .Last <- function() cat("ran .Last\n")
> # I hit ^D here
ran .Last
Save workspace image? [y/n/c]: n
The problem is that .Last is handled in end_Rmainloop(), and that is
not called by q(). We need to move the handling to R_CleanUp (and
for some reason do_quit is system-dependent, so need not even call
R_CleanUp). I'll work on this.
I did check the documentation: ?quit does claim .Last should be called:
Immediately before terminating, the f...
2003 Jul 16
2
Fatal error in SJava.
Dear r-helpers,
I have been trying to invoke R from Java in a Windows 2000 computer
(unfortunately). All my environment variables seem to be properly set,
everything seems to be in order, but I obtaining a
Fatal error: unable to open the base package
error window.
Also, the output of the invoker is
Loading RInterpreter library
R_HOME: R_HOME=C:/Programas/R
RVersion: R_VERSION=1.6.1
whereas
2005 Feb 04
5
simple example of C interface to R
i'd like to use the C interface to R in a program i'm writing. as a
starting point, i'm trying to create a very simple C program that uses
R. i've read the R documentation on this, but i'm having trouble
figuring out where SEXP is defined and how to use it.
i noticed someone else on this list also tried to use the C interface,
but they ran into similar problems: