Do you have the same R packages installed in two places? Would you like to remove the duplicates? You might find the script below useful:

Why I wrote this:

A while back I chose to separate my package library over two file paths. One would be for base and recommended packages (1), the other for everything else (2). My notes on how I did that are here, and my reasons are here.

Today, I wanted to update my Zelig. I used the wizard – source("http://r.iq.harvard.edu/zelig.installer.R") as of this writing – so I would get all the add-ons in one step. The wizard works under the assumptions that your library is all in one place. It installed a few packages that Zelig and its add-ons depend on on path (2), because it didn’t find them there. They were present on path (1) though, so I ended up with duplicates. This is how I got rid of them.