From edd at debian.org  Thu May 21 15:46:40 2009
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 21 May 2009 08:46:40 -0500
Subject: [Rd] Auto-upgrading a package under Windows ?
In-Reply-To: <alpine.LFD.2.00.0905210709460.30721@gannet.stats.ox.ac.uk>
References: <18961.48417.945981.635658@ron.nulle.part>
	<alpine.LFD.2.00.0905190808200.24633@gannet.stats.ox.ac.uk>
	<18964.43362.572242.261641@ron.nulle.part>
	<alpine.LFD.2.00.0905210709460.30721@gannet.stats.ox.ac.uk>
Message-ID: <18965.23360.670177.706079@ron.nulle.part>


On 21 May 2009 at 07:11, Prof Brian Ripley wrote:
| You would need not to use UseDynLib in the NAMESPACE, but load the DLL 
| in the .onLoad via library.dynam.

Martin Morgan had suggested the same in private mail, and that is indeed the
solution: do not load the dynamic library via NAMESPACE, compare and possibly
upgrage from .onLoad in R/zzz.R and only load the dynamic library the
old-school way via library.dynam.  That works in some initial testing, and
I'll give it some 'field testing'.

Thanks for the help and follow-up.

Dirk

-- 
Three out of two people have difficulties with fractions.



[Rd] Auto-upgrading a package under Windows ?
Dirk Eddelbuettel