Re: [R] unload & reload a (new version of a) package

2008-02-06 Thread Harte, Thomas P
ily detach it with > detach(foo, version="1.2") and then go back to version 1.0 again (all in the same R session): > library(foo, version="1.0") thus obviating the behavior that i had previously reported. -Original Message- From: Harte, Thomas P Sent: Tues

Re: [R] unload & reload a (new version of a) package

2008-01-15 Thread Harte, Thomas P
update: this phenomenon disappears if i do a straight install *without* package versioning, i.e. C:\packages>c:\R\R-2.6.1\bin\R CMD BUILD foo_1.0 [creates foo_1.0.tar.gz] C:\packages>c:\R\R-2.6.1\bin\R CMD INSTALL -l c:/library foo_1.0.tar.gz i can update the package, re-build and re-install and

Re: [R] unload & reload a (new version of a) package

2008-01-15 Thread Harte, Thomas P
14, 2008 7:15 PM To: Harte, Thomas P Cc: r-help@r-project.org Subject: Re: [R] unload & reload a (new version of a) package See ?detach, in particular the 'unload' argument and "Details" (issues involve namespaces & methods, among other things). Also, note that if the p

Re: [R] unload & reload a (new version of a) package

2008-01-14 Thread Henrik Bengtsson
On 14/01/2008, hadley wickham <[EMAIL PROTECTED]> wrote: > On Jan 14, 2008 5:48 PM, Harte, Thomas P <[EMAIL PROTECTED]> wrote: > > i'm putting the final touches on a package that i'm developing and i > > noticed > > that if i detach the package, and then re-build & re-install it (using R > > CMD) >

Re: [R] unload & reload a (new version of a) package

2008-01-14 Thread hadley wickham
On Jan 14, 2008 5:48 PM, Harte, Thomas P <[EMAIL PROTECTED]> wrote: > i'm putting the final touches on a package that i'm developing and i > noticed > that if i detach the package, and then re-build & re-install it (using R > CMD) > then I can't get the newer version of the package to load in the >

Re: [R] unload & reload a (new version of a) package

2008-01-14 Thread Tony Plate
See ?detach, in particular the 'unload' argument and "Details" (issues involve namespaces & methods, among other things). Also, note that if the package loaded any compiled code (DLL's in Windows), some OS's do not support unloading & reloading these. -- Tony Plate Harte, Thomas P wrote: > i'm

Re: [R] unload & reload a (new version of a) package

2008-01-14 Thread Charles Annis, P.E.
I may not understand things, but what I do with my home-brew package in Windows is this: First detach the current package - Type detach("package:your.package") Next, click on Packages, Install package(s) from local zip files, and click on the updated zip file. Finally, click on Packages, Load p