search for: r_registerfinalizerex

Displaying 7 results from an estimated 7 matches for "r_registerfinalizerex".

Did you mean: r_registercfinalizerex
2004 May 03
1
Finalization and external pointers
...ion destroys a pointer referring to a window, then the window should know not to change that pointer to NULL later. Are there other examples like this I can look at? I'd like to follow existing conventions rather than invent my own. And a related question: is there a writeup anywhere on the R_RegisterFinalizerEx function? What does the onexit argument do? Duncan Murdoch
2002 Nov 07
0
Finalizer function?
I have some code that calls R's finalizer interface, e.g., .Call('R_RegisterFinalizerEx', object, function, TRUE) This worked pre 1.6, but now I get '.Call function name not in call table'. Are functions listed in Rinternals.h no longer available in .Call? Or is this a namespace issue? How do I reference the function? Thanks. Tim -- Timothy H. Keitt The University of...
2002 Nov 09
1
Calling function with proto in Rinternals.h
(Tried this query on r-help with no luck, maybe someone here can help?) I would like to call the 'RFinalizerEx' function that appears in Rinternals.h using ".Call". It worked for me in the past, but now I get an error message something like: 'call function name not in call table'. I'm using the 1.6.1 rpm from CRAN. Anyone know what's going on? Thanks. Tim --
2020 Apr 03
0
[External] The finalizer of the externalPtr does not work when closing R?
Use R_RegisterFinalizerEx in your C code. See https://cran.r-project.org/doc/manuals/r-release/R-exts.html#External-pointers-and-weak-references This still gives you only "best effort"; for anything stronger you would need a different approach. In general, finalizers should only be used as a backstop, not as a...
2020 Apr 03
4
The finalizer of the externalPtr does not work when closing R?
Hi all, I found that the finalizer of the externalPtr is not called when R is quitting. However, manually calling GC() works fine. This behavior is observed on devel R 2020-04-02 r78142 on Win and R 3.6.3 on Ubuntu. I make a reproducible package here: https://github.com/Jiefei-Wang/example Here is the detail of how to reproduce the problem, I create a temporary file in the package root path and
2006 Oct 03
1
R-2.4.0 is released
...tion readNEWS() to read R's own "NEWS" file and similarly formatted ones. o readLines() has a new argument 'warn' to suppress warnings: the default behaviour is still to warn. o reg.finalizer() has a new argument 'onexit' to parallel the C-level equivalent R_RegisterFinalizerEx. o rep() is now a primitive function and under some conditions very much faster: rep.int() is still a little faster (but does less). (Because it is primitive there are minor changes to the call semantics: see the help page.) o The 'row.names' of a data frame may be stored inter...
2006 Oct 03
1
R-2.4.0 is released
...tion readNEWS() to read R's own "NEWS" file and similarly formatted ones. o readLines() has a new argument 'warn' to suppress warnings: the default behaviour is still to warn. o reg.finalizer() has a new argument 'onexit' to parallel the C-level equivalent R_RegisterFinalizerEx. o rep() is now a primitive function and under some conditions very much faster: rep.int() is still a little faster (but does less). (Because it is primitive there are minor changes to the call semantics: see the help page.) o The 'row.names' of a data frame may be stored inter...