I had everything working with R and RStudio, but then I moved the folders when cleaning up my computer directories & files. Now I\'m getting the error message below.
The last time I encountered a very similar problem, I used this code which I got somewhere:
install.packages("package's name", repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com"))
simply put your package's name in the quotation marks.
Hope this helps.