Displaying 20 results from an estimated 2000 matches similar to: "stop R mainloop without calling exit(1)"
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:
1999 Jul 15
0
.Last is usually not called (PR#227)
R-0.64.2 and R-devel:
[I found this by looking at the code.]
A .Last function is _only_ called if the condition that causes termination
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
2020 Nov 23
2
.Internal(quit(...)): system call failed: Cannot allocate memory
The call to system() probably is an internal call used to delete the
session's tempdir(). This sort of failure means that a potentially large
amount of disk space is not being recovered when R is done. Perhaps
R_CleanTempDir() could call R_unlink() instead of having a subprocess call
'rm -rf ...'. Then it could also issue a specific warning if it was
impossible to delete all of
2005 Sep 22
1
Rf_initEmbeddedR in Windows
Hi All
My C++/linux program uses Rf_initEmbeddedR to start R and then calls some
R functions. Now I try to port it to Windows. Give the fact that
Rf_initEmbeddedR is missing in Windows, I try to use the implmentation in
Rserve by Simon Urbanek. When I build in MS Visual Studio, I get the
following linking error
error LNK2019: unresolved external symbol __imp__putenv referenced in
function
2009 Jan 08
1
Callbacks seems to get GCed.
Dear list,
I am trying to implement a publish-subscribe mechanism in for an embedded
R interpreter. But somehow my registered closures seem to get collected by
the GC, even though I have protected them. I have reducted my code to the
following sample. Sorry if it is a little verbose.
The first couple of call of calls still work, but at some point one of the
callbacks (callback1 in my
2010 Aug 20
2
segfault in embedded r after call to repldlldo1
Dear R developers,
i've got a question concerning an embedded R instance. I called the
initialization routines as seen in the "writing extensions" guide
(Rf_initialize, setup_Rmainloop and R_ReplDLLinit). I also changed the
function callback pointer of readconsole and writeconsoleex to my local
functions.
when i call mainloop there is no problem and the commands are evaluated
2020 Nov 24
2
.Internal(quit(...)): system call failed: Cannot allocate memory
On 11/24/20 11:27 AM, Jan Gorecki wrote:
> Thanks Bill for checking that.
> It was my impression that warnings are raised from some internal
> system calls made when quitting R. At that point I don't have much
> control over checking the return status of those.
> Your suggestion looks good to me.
>
> Tomas, do you think this could help? could this be implemented?
I think
2010 Mar 27
3
Calling R from c in Windows XP
I'm searching for answers to four questions (I've been searching the net for
hours...)
In Windows XP, is it possible to call R functions from a c program? (I've
found examples for Linux/Unix but not Windows)
If so, is there a simple example to get started using gcc with R-2.10.0?
If so, is it possible to write a simple interface using a c dll to call R
functions from a Visual
2001 Apr 16
2
Samba with Redhat 7.0
I have got now Redhat 7.0 and when I want to install Swat I need to edit the file /etc/inetd.conf but in Redhat 7.0 the file is named to /etc/xinetd.conf and /etc/xinetd.d can you help me ?
(In Redhat 6.1 it worked alright)
Greetz
Rob op den kelder
-------------- next part --------------
HTML attachment scrubbed and removed
2020 Nov 24
0
.Internal(quit(...)): system call failed: Cannot allocate memory
Thanks Bill for checking that.
It was my impression that warnings are raised from some internal
system calls made when quitting R. At that point I don't have much
control over checking the return status of those.
Your suggestion looks good to me.
Tomas, do you think this could help? could this be implemented?
On Mon, Nov 23, 2020 at 7:10 PM Bill Dunlap <williamwdunlap at gmail.com>
2020 Nov 25
1
[External] Re: .Internal(quit(...)): system call failed: Cannot allocate memory
On Tue, 24 Nov 2020, Jan Gorecki wrote:
> As for other calls to system. I avoid calling system. In the past I
> had some (to get memory stats from OS), but they were failing with
> exactly the same issue. So yes, if I would add call to system before
> calling quit, I believe it would fail with the same error.
> At the same time I think (although I am not sure) that new allocations
2013 Nov 21
2
Running R embedded in an mpiexec spawned process - Fatal error: you must specify '--save', '--no-save' or '--vanilla'
I'd like someone familiar with the R options initialization to comment on a difference of behavior within/without mpiexec
I have a (.NET) application with embedded R that is proven to run in a single process:
./Sample1.exe
on a Debian Linux with R 3.0.2
Running the same code with mpiexec, it fails at the R engine initialization:
mpiexec -n 1 ./Sample1.exe
Fatal error: you must
2008 Jun 02
2
Problemas usando jri0.4-1 y R 2.7.0
Hola, es la primera vez que mando un correo a cualquiera de las listas de
correo de R y no se si esta consulta se ajusta al próposito de la r-help
list o deberÃa haberlo mandado a otra de las listas que hay.
Mi problema es el siguiente: Estoy desarrollando un programa en java con
llamadas a R y no puedo usar jri 0.4-1 con la version 2.7 o 2.6 de R.
Curiosamente si me funciona si uso jri 0.4 o la
2019 Feb 27
2
Intermittent crashes with inset `[<-` command
Valgrind (without gctorture) reports memory misuse:
% R --debugger=valgrind --debugger-args="--leak-check=full --num-callers=18"
...
> x <- 1:200000
> y <- rep(letters[1:5], length(x) / 5L)
> for (i in 1:1000) {
+ # x[y == 'a'] <- x[y == 'b']
+ x <- `[<-`(x, y == 'a', x[y == 'b'])
+ cat(i, '')
+ }
1 2 3 4 5 6 7 8 9 10
2009 Feb 28
2
Using JRI and Java 1.6 on MAC OS X
Dear R-Help,
I am trying to get JRI (the rJava interface allowing Java to connect
to R) to work. I was able to run it a week ago when I was doing some
testing using Java 1.5. However, I am developing a GUI application
using some of the new Java 1.6 features and I just can't get JRI to
work with this setup.
Here is what I get:
Cannot find JRI native library!
Please make sure that the JRI
2007 Sep 13
3
Someone Using Java/R Interface--- JRI ?
Hi all,
I am writing R code and I want to interface with JAVA i.e. I want to call R
from JAVA. That's why i have installed JRI on my machine.
There is also documentation available in "Javadoc".
But as i am very new to JAVA and well as R, I don't understand much of it.
If someone is using this package i.e. JRI, please let me know whether i am
going in right direction or not.
2008 May 16
2
Getting JRI/rJava to work
Hello All
I am trying to get the JRI examples from rJava to work on Windows XP and
failing. (And as a more general and connected question is there any
review/summary of front-end software for R?)
I have installed rJava from the Windows binary supplied. I compile and
run the example supplied (rtest.java) and get the results below. I do
not think the notes about a deprecated API are a problem. But
2009 Jun 25
2
JRI - problem to access "stats" package
Hello,
I am a new R user. More precisely, I am working with JRI (on a Eclipse
Java6 project under Ubuntu9).
I have difficulties to access some R packages (For example: package
"stats", object "Normal", function "pnorm").
I have tried many solutions to set the right path but nothing have succeed:
For example:
2006 Jul 07
4
Call R function from Java
Dear All,
I need to call R functions from Java, I've read on the internet about JRI but there are no exemples, neither tutorials.
I'm beginner in Java and in R,
Could you please help me??
Thank you in advance,
Xena
---------------------------------
[[alternative HTML version deleted]]