I\'m having trouble loading the ggplot2 library in R. Below is the code that I type in. Anyone have any ideas on how to make this work?
> library(ggplot2)
Quit R. Go into your /Library/Frameworks/R.framework/Versions/2.13/Resources/library/
directory and trash the entire folder. If you have any other libraries make sure they don't have any copies, either. Restart R and reinstall and make sure you install all dependencies. There is a check mark option in the GUI Package Installer or you can use (at the command line: install.packages("ggplot2", dependencies=c("Depends", "Imports", "Suggests") ).
Further thought: Obscure errors in the MacOS can sometimes be resolved by repairing disk permissions. The Disk Utility.app program is the way I usually do it. Some people run it on a regular basis although I only do so when a problem arises that seems to be a file access issue.