install.packages(ggplot2) showing error

That is a different problem, we like to keep things tidy around here so please ask it on a new topic providing a relevant REPRoducible EXample (reprex) illustrating your issue.