similar to: Finalizer function?

Displaying 20 results from an estimated 4000 matches similar to: "Finalizer function?"

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 --
2003 Aug 17
3
anon cvs?
I'd like to add an "on.exit" flag to "reg.finalizer". Is it possible to check out the source via anon cvs? (If so, which module is preferred for this sort of thing, and which diff flags?) Tim -- Timothy H. Keitt <tkeitt@mail.utexas.edu> University of Texas at Austin
2008 Apr 16
1
Meaning of /, :, and %in% in lmer
Hello, I asked this question a little while ago ( https://stat.ethz.ch/pipermail/r-help/2008-April/158761.html ) but got no response. Can anybody explain to me the difference between /, :, and %in% in the definition of random effects in lmer, such as: (1|A/B), (1|A:B), (1|B %in% A)? My understanding is that (1|A/B) is the same as (1|A) + (1|A:B), but I have not seen this stated explicitly
2008 Apr 04
1
lme4: How to specify nested factors, meaning of : and %in%
Hello list, I'm trying to figure out how exactly the specification of nested random effects works in the lmer function of lme4. To give a concrete example, consider the rat-liver dataset from the R book (rats.txt from: http://www.bio.ic.ac.uk/research/mjcraw/therbook/data/ ). Crawley suggests to analyze this data in the following way: library(lme4) attach(rats) Treatment <-
2007 Oct 16
2
Bootstrapping Contrasts for Repeated Measures ANOVA
I have executed a Repeated Measures ANOVA with one DV (latency) and one within subject factor (acoustic condtion: 3 levels) by bootstrapping my sampling distribution of F from the empirical sample distribution. I chose to resample because the sample distribution deviates from normality a lot. The overall F is significant and now I wish to decompose this with contrasts to ask if latencies to
2017 Mar 29
0
Transferring ownership of R-managed buffer
Tim, What you're describing is a special case of the ALTREP framework/API that Luke Tierney, Tomas Kalibera, and I are working on putting into R. See my initial proposal to the DSC here: https://www.r-project.org/dsc/2016/slides/customvectors.html and the subsequent branch here: https://svn.r-project.org/R/branches/ALTREP/ where Luke and I have merged the ideas from that proposal with work he
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 primary resource management tool (in R or any other garbage-collected
2018 May 29
1
Quartz graphic device can be extremely slow in some cases
Hello, We?re receiving reports of extremely slow rendering by users who are using the new geom_sf() feature in ggplot2. Importantly, this seems to be a graphics device issue, because the exact same plot takes vastly different amounts of time to render under different devices. We?re talking about 2 seconds vs. 100 seconds here, so not a small effect. In particular, the quartz device on OS X seems
2017 Mar 29
2
Transferring ownership of R-managed buffer
http://www.keittlab.org/ On Wed, Mar 29, 2017 at 1:04 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: > Hi Tim, > > On 03/29/2017 08:24 AM, Tim Keitt wrote: > >> I have a use case where I would like to create an SEXP around an existing >> buffer that is managed by R, thus avoiding a copy operation. >> > > What to you mean exactly by "an existing
2001 Jul 10
1
Object finalization
I see some code in R to attach finalizers to external pointer references (Register[C]Finalizer). Anyone have an example of how to code the finalizer? R_RegisterCFinalizer accepts a C function, but I can't see how to get it to operate on the pointer, since the pointer is not passed to the function when its called. RegisterFinalizer takes an R closure, but how is it called from R (tried
2008 Apr 28
2
F values from a Repeated Measures aov
Hi Folks, I have repeated measures for data on association time (under 2 acoustic condtions) in male and female frogs as they grow to adulthood (6 timepoints). Thus, two within-subject variables (Acoustic Condition: 2 levels, Timepoint: 6 levels) and one between-subject variable (Sex:male or female). I am pretty sure my distributions depart from normality but I would first like to simply run a
2020 Apr 03
0
The finalizer of the externalPtr does not work when closing R?
See R_RegisterCFinalizerEx() and set onexit to nonzero. Here: https://github.com/wch/r-source/blob/9353ddfa8d30069ad8975e0364307d710f2488d5/src/include/Rinternals.h#L1279-L1280 Gabor On Fri, Apr 3, 2020 at 1:56 PM Wang Jiefei <szwjf08 at gmail.com> wrote: > > Hi all, > > I found that the finalizer of the externalPtr is not called when R is > quitting. However, manually
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
2007 Jun 07
1
Ubu edgy + latest CRAN R + Rmpi = no go
I'm just curious if anyone else has had problems with this configuration. I added the CRAN repository to apt and installed 2.5.0 with apt-get. I then did an install.packages("Rmpi") on cluster nodes. Rmpi loads and lamhosts() shows the nodes, but mpi.spawn.Rslaves() fails (something to do with temp files?). Rmpi works fine with the Edgy-native version of R (2.3.x) and installing
2001 Mar 07
1
mkString (PR#866)
Full_Name: Tim Keitt Version: 1.2x OS: Linux Submission from: (NULL) (129.49.19.70) The function "mkString" declared in "Rinternals.h" dumps core if passed a NULL pointer. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2007 Mar 18
1
Setting site-wide default CRAN repository?
I can't seem to find this anywhere. How do I set the default CRAN repository _site wide_ on a linux box? What I want to do is eliminate the pop-up list of repository locations when using 'install.packages()'. I know how to do this for a single account. Modifying files in /etc/R does not seem to work. (cc me please - I think I'm not subscribed). THK -- Timothy H. Keitt,
2017 Mar 30
0
Transferring ownership of R-managed buffer
On Thu, Mar 30, 2017 at 11:52 AM, Tim Keitt <tkeitt at utexas.edu> wrote: > > On Wed, Mar 29, 2017 at 4:56 PM, Gabriel Becker <gmbecker at ucdavis.edu> > wrote: > >> The concept of having a vector which is a "window" into another vector >> without duplication ( which I suspect is at least related to your use-case, >> though I could be wrong) is
2020 Apr 22
1
R not running under lldb? (osx)
Thanks Simon. I'll probably just switch to rocker when needing to debug in that case. THK On Tue, Apr 21, 2020 at 6:51 PM Simon Urbanek <simon.urbanek at r-project.org> wrote: > Tim, > > as a security precaution Apple has disabled the ability to debug notarized > applications*. It means any software distributed on macOS Catalina (and > they may have retro-actively
2020 Apr 21
0
R not running under lldb? (osx)
Tim, as a security precaution Apple has disabled the ability to debug notarized applications*. It means any software distributed on macOS Catalina (and they may have retro-actively enabled it for recent updates of Mojave) cannot be run in a debugger. If you want to debug R, you have to use non-release binaries that are not notarized and install them by hand, e.g.: curl -L
2004 May 03
1
Finalization and external pointers
I'm adding things to the Windows RGui so that there's more control of the interface from within R. One thing I'm considering is giving access to the Graphapp window objects using external pointers. This raises the issue of finalization on both sides: - If someone creates a pointer referring to a window, then that pointer should be changed to NULL when the window is closed. - If