From romain.francois at dbmail.com  Fri Jul  3 10:27:19 2009
From: romain.francois at dbmail.com (Romain Francois)
Date: Fri, 03 Jul 2009 10:27:19 +0200
Subject: [Rd] package post install instructions
In-Reply-To: <4A4C63F8.4000900@dbmail.com>
References: <4A4C63F8.4000900@dbmail.com>
Message-ID: <4A4DC0E7.7080000@dbmail.com>

A somewhat related question. Can one install a hook to be called when 
__any__ package is loaded. Something like this :

setHook(packageEvent(".*", "onLoad"),
              function(...) grDevices::ps.options(horizontal=FALSE))

Romain

On 07/02/2009 09:38 AM, Romain Francois wrote:
>
> Hello,
>
> I've looked in tools:::.install_packages for some sort of hook that
> would let packages developers point to further instructions after a
> package is installed. For example, some packages need to setup
> environment variables, ...
>
> Is there something I have missed ?
>
> Romain


-- 
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/qJ8V : RGG#153: stars network
|- http://tr.im/qzSl : using ImageJ from R: the RImageJ package
`- http://tr.im/qzSJ : with semantics for java objects in rJava



[Rd] package post install instructions
Romain Francois