0
Error in contrib.url(repos, "source") : 
  trying to use CRAN without setting a mirror
Calls: <Anonymous> ... eval_with_user_handlers -> eval -> eval -> install.packages -> contrib.url
Execution halted

i tried to install ggplot but didnt work

jpsmith
  • 11,023
  • 5
  • 15
  • 36
Nandini
  • 9
  • 1
  • 2
    Welcome to SO, Nandini! It's not clear what triggered the error. Is the error after you tried to `install.packages("ggplot2")`? If so, the error is clear, and googling it ([`trying to use CRAN without setting a mirror`](https://www.google.com/search?q=trying+to+use+CRAN+without+setting+a+mirror)) produces several good links, including https://stackoverflow.com/q/33969024/3358272. – r2evans Feb 19 '23 at 01:24

0 Answers0