I (finally) just installed ggplot2 by doing it from R directly and turning off antivirus. (It had previously failed out on moving the temp files for stringi and magrittr, so I followed the advice in StackOverflow.)
And it worked. But I have a few puzzles about its behaviour. The command I used was:
install.packages("ggplot2", repos = getOption("repos"), dependencies = TRUE)
Two things that happened as a result puzzled me:
it didn't ask me what repos I wanted to use - but just went to imperial (which is fine with me)
it didn't install the dependencies - which I discovered when I did
library, so I installed the missing ones manually one by one (luckily there were only two - the two that had failed out when I had tried an install from RStudio with my antivirus on)
I have read the documentation on install.packages() but haven't understood it, as both these behaviours were different from what I expected. I thought I would get a query about what repos to go to, and I thought I would get the dependencies tagging along on the install.
Can someone explain?
Thanks.