Re: [R] Removing duplicate packages...

2007-12-26 Thread Henrique Dallazuanna
Try this: (tested on Windows) remove.packages(installed.packages()[duplicated(rownames(installed.packages())),1], lib=.libPaths()[.libPaths() != .Library]) On 26/12/2007, Petar Milin <[EMAIL PROTECTED]> wrote: > Hello! > I am using R version 2.6.1, under Ubuntu 6.06 (Dapper Drake). Recently I >

[R] Removing duplicate packages...

2007-12-26 Thread Petar Milin
Hello! I am using R version 2.6.1, under Ubuntu 6.06 (Dapper Drake). Recently I have realized that I have, in some cases, two or even three instances of the same package; for example: cluster, foreign etc. Typically, two instances occur in one of the three location: "/usr/local/lib/R/site-libra