I'm failing to update ggplot2, any suggestions please?!

RStudio is an Integrated Development Environment for working with R but they are two independent pieces of software, so installing the latest version of RStudio doesn't mean that you have the latest version of R, maybe this will clarify things for you