Problems installing packages in Rstudio

I am able to replicate this error message by disconnecting myself from the internet, and attempting to install a package.