Error when trying to load library(ggplot2) in R

后端 未结 1 475
死守一世寂寞
死守一世寂寞 2021-01-14 16:42

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)         


        
相关标签:
1条回答
  • 2021-01-14 16:52

    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.

    0 讨论(0)
提交回复
热议问题