Thank you for the fast reply!

Best regards

Marcel
 

Gesendet: Donnerstag, 09. Oktober 2014 um 13:54 Uhr
Von: "Frederic Ntirenganya" <ntfr...@gmail.com>
An: "Duncan Murdoch" <murdoch.dun...@gmail.com>
Cc: "marcel Austenfeld" <marcel...@web.de>, r-help@r-project.org
Betreff: Re: [R] Event after a package is loaded

I don't think the is an appropriate option for that.
 
On Thu, Oct 9, 2014 at 2:32 PM, Duncan Murdoch <murdoch.dun...@gmail.com> 
wrote:On 09/10/2014, 6:53 AM, marcel Austenfeld wrote:
> Hello,
>
> i would like to call a self defined R function after a package (not a 
> specific one - library (anyAvailablePackage)) has been loaded into the R 
> environment.
> I there a general method available in R which can be used for that?

No, I don't think so.  ?setHook defines user hooks, but they are set
separately by package, not generally.  You could change the
loadNamespace function if you want, but it won't work for other users.

Duncan Murdoch

______________________________________________
R-help@r-project.org[R-help@r-project.org] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help[https://stat.ethz.ch/mailman/listinfo/r-help]
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html[http://www.R-project.org/posting-guide.html]
and provide commented, minimal, self-contained, reproducible code.


--

Frederic Ntirenganya
Maseno University,
Kenya.
Mobile:(+254)718492836
Email: fr...@aims.ac.za[fr...@aims.ac.za]
https://sites.google.com/a/aims.ac.za/fredo/

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to