Displaying 20 results from an estimated 20 matches for "r_cleanup".
Did you mean:
_cleanup
2006 Aug 31
2
stop R mainloop without calling exit(1)
...---------------------------------------------
value = eval(R_CurrentExpr, rho);
+if(value == NULL)
+return(-1);
src/main/main.c : do_quit():
-------------------------------------
//exit(0);
+return(NULL)
I also removed the call to exit in src/linux/sys-std.c:Rstd_CleanUp
and src/gnuwin32/system.c:R_CleanUp for linux and windows
respectively.
This is obviously a quick hack to make it work (but it works fine,
also the standalone R exits ok this way), but I can imagine more
people want to use the mainloop with the possibility to return from it
without making their application to exit too. I wonder if i...
1999 Jul 15
0
.Last is usually not called (PR#227)
...st\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 function `.Last()'
is executed if it exists.
Brian
--
Brian D. Ri...
2003 May 16
1
Reloading a shared library with dyn.load
...yn.load it again, I
get an hourglass icon in Rgui (R 1.7.0, Win 2000), and it
just sits there forever. I can't press Escape to stop the
current computation, but I can close Rgui without resorting to
using the Task Manager.
Is it a problem with my use of R_alloc? Do I need something
like R_cleanup? Or is it a problem with dyn.load?
I'll demonstrate how I compile a C file, HelloFromC.C into a
shared library, HelloFromC.dll and then load it into R.
HelloFromC.c
------------
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
#include <R_ext/Memory.h&...
2020 Nov 23
2
.Internal(quit(...)): system call failed: Cannot allocate memory
...and at entry=0x7fffffffa1e0 "rm -Rf
/tmp/RtmppoKPXb") at sysutils.c:311
#1 0x00005555557c30ec in R_CleanTempDir () at sys-std.c:1178
#2 0x00005555557c31d7 in Rstd_CleanUp (saveact=<optimized out>, status=0,
runLast=<optimized out>) at sys-std.c:1243
#3 0x00005555557c593d in R_CleanUp (saveact=saveact at entry=SA_NOSAVE,
status=status at entry=0, runLast=<optimized out>) at system.c:87
#4 0x00005555556cc85e in do_quit (call=<optimized out>, op=<optimized
out>, args=0x555557813f90, rho=<optimized out>) at main.c:1393
-Bill
On Mon, Nov 23, 2020 at 3:15 A...
1999 Nov 16
3
Make on RH6.1
...ng wrong?
make[2]: *** Warning: File `../unix/libunix.a' has modification time in
the future (942749076 > 942748853)
../unix/libunix.a(system.o): In function `main':
/usr/local/R-0.63/src/unix/system.c:544: undefined reference to
`__setfpucw'
./unix/libunix.a(system.o): In function `R_CleanUp':
/usr/local/R-0.63/src/unix/system.c:625: undefined reference to
`__setfpucw'
collect2: ld returned 1 exit status
make[2]: *** [../../bin/R.binary] Error 1
make[5]: *** Warning: File `bsplvd.o' has modification time in the
future (942749165 > 942748869)
make[5]: *** Warning: Clock...
2020 Nov 24
2
.Internal(quit(...)): system call failed: Cannot allocate memory
..."rm -Rf /tmp/RtmppoKPXb") at sysutils.c:311
>> #1 0x00005555557c30ec in R_CleanTempDir () at sys-std.c:1178
>> #2 0x00005555557c31d7 in Rstd_CleanUp (saveact=<optimized out>, status=0, runLast=<optimized out>) at sys-std.c:1243
>> #3 0x00005555557c593d in R_CleanUp (saveact=saveact at entry=SA_NOSAVE, status=status at entry=0, runLast=<optimized out>) at system.c:87
>> #4 0x00005555556cc85e in do_quit (call=<optimized out>, op=<optimized out>, args=0x555557813f90, rho=<optimized out>) at main.c:1393
>>
>> -Bill
>&...
1999 Apr 14
2
R code for repeated measures
For anyone who might be interested, I now have a home page (finally)
on which can be found the R code, data, and output for all the
examples and some of the exercises in the second edition of my Models
for Repeated Measurements (being printed, out in June or July), as
well as the latest version of my R libraries:
http://www.luc.ac.be/censtat/
Jim
1999 Apr 14
2
R code for repeated measures
For anyone who might be interested, I now have a home page (finally)
on which can be found the R code, data, and output for all the
examples and some of the exercises in the second edition of my Models
for Repeated Measurements (being printed, out in June or July), as
well as the latest version of my R libraries:
http://www.luc.ac.be/censtat/
Jim
2002 Oct 22
4
list of exit codes?
I was just running some regressions and R died with an exit code of 137.
I assume the problem has something to do with memory usage since I was
using some fairly large data sets and the Linux system I am on was
getting real slow just before the crash.
This prompted me to go looking for a list of R exit codes, but a search
yielded nothing. Is there such a list?
2002 Aug 22
0
R_Interactive decision to halt execution during errors
...face (you may have
seen me on the help list), and I'm running into something that is rather
confusing. The following lines in main/errors.c of R 1.5.1:
439: if ( !R_Interactive && !haveHandler && inError ) {
440: REprintf("Execution halted\n");
441: R_CleanUp(SA_NOSAVE, 1, 0); /* quit, no save, no .Last, status=1
*/
442: }
Which seems to not make any sense at all. I've scoured the code and can't
figure out what the rationale is for halting execution simply because the
input is not interactive. I'm assuming the rationale was that, if i...
2020 Nov 24
0
.Internal(quit(...)): system call failed: Cannot allocate memory
...7fffffffa1e0 "rm -Rf /tmp/RtmppoKPXb") at sysutils.c:311
> #1 0x00005555557c30ec in R_CleanTempDir () at sys-std.c:1178
> #2 0x00005555557c31d7 in Rstd_CleanUp (saveact=<optimized out>, status=0, runLast=<optimized out>) at sys-std.c:1243
> #3 0x00005555557c593d in R_CleanUp (saveact=saveact at entry=SA_NOSAVE, status=status at entry=0, runLast=<optimized out>) at system.c:87
> #4 0x00005555556cc85e in do_quit (call=<optimized out>, op=<optimized out>, args=0x555557813f90, rho=<optimized out>) at main.c:1393
>
> -Bill
>
> On Mon,...
2020 Nov 25
1
[External] Re: .Internal(quit(...)): system call failed: Cannot allocate memory
...oKPXb") at sysutils.c:311
>>>> #1 0x00005555557c30ec in R_CleanTempDir () at sys-std.c:1178
>>>> #2 0x00005555557c31d7 in Rstd_CleanUp (saveact=<optimized out>, status=0, runLast=<optimized out>) at sys-std.c:1243
>>>> #3 0x00005555557c593d in R_CleanUp (saveact=saveact at entry=SA_NOSAVE, status=status at entry=0, runLast=<optimized out>) at system.c:87
>>>> #4 0x00005555556cc85e in do_quit (call=<optimized out>, op=<optimized out>, args=0x555557813f90, rho=<optimized out>) at main.c:1393
>>>>
>...
2020 Nov 24
0
.Internal(quit(...)): system call failed: Cannot allocate memory
...tmp/RtmppoKPXb") at sysutils.c:311
> >> #1 0x00005555557c30ec in R_CleanTempDir () at sys-std.c:1178
> >> #2 0x00005555557c31d7 in Rstd_CleanUp (saveact=<optimized out>, status=0, runLast=<optimized out>) at sys-std.c:1243
> >> #3 0x00005555557c593d in R_CleanUp (saveact=saveact at entry=SA_NOSAVE, status=status at entry=0, runLast=<optimized out>) at system.c:87
> >> #4 0x00005555556cc85e in do_quit (call=<optimized out>, op=<optimized out>, args=0x555557813f90, rho=<optimized out>) at main.c:1393
> >>
> >&...
2020 Nov 21
4
.Internal(quit(...)): system call failed: Cannot allocate memory
Dear R-developers,
Some of the more fat scripts (50+ GB mem used by R) that I am running,
when they finish they do quit with q("no", status=0)
Quite often it happens that there is an extra stderr output produced
at the very end which looks like this:
Warning message:
In .Internal(quit(save, status, runLast)) :
system call failed: Cannot allocate memory
Is there any way to avoid this
2007 Jan 30
1
Solaris 10 compilation issue
...random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp errors.o
_nl_find_msg ../extra/intl/libintl.a(loadmsgcat.o)
Rf_dsignrank arithmetic.o
Rf_psignrank arithmetic.o
Rf_rsignrank random.o
Rf_qsignrank arithmetic....
2007 Jan 30
1
Difficulty with compiling R-2.4.1 on solaris 10
...random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp errors.o
_nl_find_msg ../extra/intl/libintl.a(loadmsgcat.o)
Rf_dsignrank arithmetic.o
Rf_psignrank arithmetic.o
Rf_rsignrank random.o
Rf_qsignrank arithmetic....
2007 Jan 30
0
R Compiling issue
...tions.o
bincode registration.o
R_CleanTempDir main.o
do_proctime names.o
norm_rand optim.o
Rf_rnchisq random.o
Rf_rnbinom random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp errors.o
_nl_find_msg ../extra/intl/libintl.a(loadmsgcat.o)
Rf_dsignrank arithmetic.o
Rf_psignrank arithmetic.o
Rf_rsignrank random.o
Rf_qsignrank arithmetic.o
Rf_dcauchy arithmetic.o
deflate connections.o
R_Suicide Renviron.o
stemleaf registration.o
Rf_digamma arithmetic.o
do_sysinfo na...
2007 Jan 30
0
Issue with compiling R on solaris 10
...random.o
R_running_as_main_program Rmain.o
Rf_psigamma arithmetic.o
ch2inv_ registration.o
BZ2_bzWrite connections.o
inflateInit2_ connections.o
Rf_rwilcox random.o
R_CleanUp errors.o
_nl_find_msg ../extra/intl/libintl.a(loadmsgcat.o)
Rf_dsignrank arithmetic.o
Rf_psignrank arithmetic.o
Rf_rsignrank random.o
Rf_qsignrank arithmetic....
1999 Aug 03
2
compliation problem
Problem compiling R.
version: 0.64.2
machine: SGI O2
OS: IRIX6.5
CC cc
FC f77
MAKE GNU make 3.75
Here is part of the the output for make.
make[2]: Leaving directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/include'
make[2]: Entering directory `/usr/people/faculty/math/mgass/stage/R/R-0.64.2/src/appl'
cc -g -OPT:IEEE_NaN_inf=ON -I../include
2001 Feb 17
4
Comments on R-1.2.1 builds (PR#851)
...------------------------------------------------------------------
c89 -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -OPT:IEEE_NaN_inf=ON -g -c main.c -o main.o
cc-1185 c89: WARNING File = main.c, Line = 671
An enumerated type is mixed with another type.
R_CleanUp(ask, status, runLast);
^
------------------------------------------------------------------------
c89 -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -OPT:IEEE_NaN_inf=ON -g -c match.c -o match.o
cc-1185 c89: WARNING File = match.c, Line = 119
An...