Displaying 20 results from an estimated 1000 matches similar to: "(kind of OT) Equivalent to onunload or onbeforeunload in Safari?"
2012 Jul 24
1
Using .onUnload to unload DLLs
I've noticed that many of the "base" R packages have an .onUnload()
function which automatically unloads compiled shared libraries
with library.dynam.unload(). For example:
> stats:::.onUnload
function (libpath)
library.dynam.unload("stats", libpath)
<bytecode: 0x1033b9c30>
<environment: namespace:stats>
I've noticed that many other packages don't
2006 Feb 08
2
Using .onUnload() to unload compiled code
If one wants to unload compiled code for a package containing a namespace, my understanding is that .onUnload() should be used, with a call to library.dynam.unload(). This is used in e.g., the stats and methods packages, but it appears to me that the compiled code is not being unloaded when the package is detached(). Am I misunderstanding something?
Best,
Jim
> search()
[1]
2008 Apr 24
4
Scriptaculous Help (page exit effects)
I was wondering if it was possible in Prototype/Scriptaculous to run
an effect when a link is clicked, then go to that page, or if it was
possible to have an effect run when the page unloads.
I have tried <body onunload="new Effect.Fade("whatever");> and some
prototype page exit events, could get a alert("") function to work,
but not the effects. Any ideas?
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
configure.ac | 7 ++-
libswfdec/swfdec_movie.c | 57 ++++++++++-----------------
libswfdec/swfdec_movie.h | 3 -
libswfdec/swfdec_sprite_movie.c | 4 -
test/trace/Makefile.am | 18 ++++++++
test/trace/remove-child-onUnload-5.swf |binary
2013 Nov 06
1
How to do package cleanup: hooks .onUnload, R_unload_mylib, .onDetach are not called on quit
Hi,
it seems that the package hooks .onLoad and its C++ pendant
R_unload_mylib are actually not called when R quits, but only when
explicitly calling detach('package:mylib', unload = TRUE).
Maybe this is platform specific, I'm on Ubuntu 13.10 - R 3.0.2 (see below).
* is there a mechanism that a package can use to effectively do some
cleanup on standard exit, such as calling
2010 Sep 16
1
Possible bug or annoyance with library.dynam.unload()
Hello,
I have a package with a namespace. Because I use Roxygen that overwrites the
NAMESPACE file each time it is run, I use a R/zzz.R file with
an .onLoad() and .onUnload() functions to take care of loading and unloading
my shared library.
The problem: if I load my library from a local directory, then the unloading
of the package fails, e.g:
# loads fine
>library(Foo,
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
Tag '0.5.5' created by Benjamin Otte <otte at gnome.org> at 2007-12-17 20:20 -0800
release 0.5.5 ("cps")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHZtodvMv5VCdLq8QRAvTmAKDtEvlvtLBIj5nu8GE6ECGjh8lCGQCgyiAN
Dkfb85qxYlfTKKJC6qYH/sU=
=VWgB
-----END PGP SIGNATURE-----
Changes since 0.5.4:
Andreas Henriksson (1):
make
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
libswfdec-gtk/swfdec_gtk_widget.c | 19
libswfdec/swfdec_as_object.c | 56 +-
libswfdec/swfdec_as_object.h | 4
libswfdec/swfdec_button.c | 228 +++++++++
libswfdec/swfdec_button.h | 10
libswfdec/swfdec_button_movie.c | 382
2005 Aug 12
10
Anyone using Firebird w/ Rails?
I saw that there''s a patch in the queue
(http://dev.rubyonrails.com/ticket/1874) for a Firebird adapter. Just
wondering if anyone is using this, the other Firebird adapter, or
something else w/ Rails. My main interest is that sometimes Windows is a
target platform, and Firebird is stable on Windows, whereas I''ve heard
that the Windows version of PostgreSQL isn''t
2010 Nov 12
1
unloading compiled code.
I have a package that I'm developing that I need to unload the
library. Long story short I figured out that the leaving the compiled
code loaded lead to a segmentation fault, but unloading the code will
fix it. I've read the documentation and it appears that there are
several ways to do this? What is the popper accepted current standard
for unloading compiled code?
The options as I
2006 Oct 18
0
Versions and gem ?
Hi all,
I am using the Textile part of RedCloth for the Manta version of
LogiLogi.org, an OS project of mine. Now I was looking at changing
the LINK_RE so it allows links without spaces inbetween them like
("te":index.html;"xt":index.txt). Now that''s pretty easy, but still
risky because a change in the bracket-order of the LINK_RE in a
newer version would wreck it,
2011 Mar 18
1
[Announce] Samba 3.5.7, 3.4.12 and 3.3.15 Security Re leases Available
When I upgrade a major revision (3.4.x -> 3.5.x ), I always get a listing
from "testparm -v" before and after the upgrade to make sure that a
parameter (that I didn't specify in the config) didn't change it's default
setting.
----------------------------------------------
Tony Hoover, Network Administrator
KSU - Salina, College of Technology and Aviation
(785) 826-2660
2016 Mar 25
1
library.dynam.unload
The survival package has a firstlib.R file that I had forgotton and just reviewed. After
deleting several bits which had a use 10 years ago during my Splus to R transition, the
only thing remaining is
.onUnload <- function(libpath)
library.dynam.unload("survival", libpath)
Does this bit of code still serve a purpose? Can I toss it?
Terry T.
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec/swfdec_movie.c test/trace
libswfdec/swfdec_movie.c | 2 +-
test/trace/Makefile.am | 9 +++++++++
test/trace/remove-depths-5.swf |binary
test/trace/remove-depths-5.swf.trace | 1 +
test/trace/remove-depths-6.swf |binary
test/trace/remove-depths-6.swf.trace | 3 +++
test/trace/remove-depths-7.swf |binary
test/trace/remove-depths-7.swf.trace | 3 +++
2018 May 01
0
[FORGED] Re: Specifying priors in a multi-response MCMCglmm
On 02/05/18 09:53, Michelle Kline wrote:
> Hi Bert,
>
> That was distinctly unhelpful
Not if you actually follow Bert's advice.
> and your outward hostility to a field you
> obviously don't understand reveals a regrettable level of ignorance.
I didn't see any hostility to any field. Bert, like many of us, objects
to people blithely and arrogantly applying possibly
2009 Mar 31
4
what is the preferred method to create a package local variable?
for the moment, I'm using:
.onAttach <- function(libname, pkgname) {
.bbg.db.conn <<- dbConnect(dbDriver("PostgreSQL"), user="blah","blah")
}
.onUnload <- function(libpath) {
dbDisconnect(.bbg.db.conn)
}
which results in a hidden global variable in the global environment.
I would prefer to make the assignment only in the package namespace.
2006 Aug 16
1
How to pass an array to a javascript function.
Hi - I''m having a bit of trouble with my application. I have this view
that calls a javascript function "zip_map". I want to pass to it a
scalar array "@zip_geo" but I don''t know how to pass an array to a
javascript function in rails. This is what the code looks like:
THE .rhtml file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
2011 Mar 11
1
hook for when R quits
Hi,
Is there any way that a package can listen for when R quits? The Qt stuff is
hooking into platform-specific event loops and when those die unexpectedly
(from the perspective of Qt), it aborts, causing an annoying error dialog.
If we could catch when R is killed, we could cleanup, like we do with
.onUnload.
Thanks,
Michael
[[alternative HTML version deleted]]
2004 Apr 28
2
Rtemp directories accumulating over time
Hola!
There is a nuisance that the number of directories with name starting
Rtmp (and always empty) in my temp directory is increasing over time.
I put the following in my .Rprofile:
tmp0001 <- tempdir()
setHook( packageEvent("base","onUnload"),
function(...) unlink( tmp0001, recursive=TRUE) )
which solves part of the problem, but not all. So there are also
2017 Sep 22
2
prevent users from fiddling with network?
On Thu, September 21, 2017 6:13 pm, Scott Robbins wrote:
> On Thu, Sep 21, 2017 at 05:23:23PM -0500, Valeri Galtsev wrote:
>>
>> On Thu, September 21, 2017 12:42 pm, Joseph L. Casale wrote:
>> >> Than was my first reaction when I realized that logged in with GUI
>> (X11)
>>
>> Yes, I can understand the rationale as above - if it is somebody's