Having issues while installing packages onto R studio

Hello,
I tried downloading ggplot2 on RStudio, but following problem occured.

> install.packages("ggplot2")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘backports’, ‘ellipsis’, ‘zeallot’, ‘glue’, ‘magrittr’, ‘stringi’, ‘colorspace’, ‘assertthat’, ‘utf8’, ‘vctrs’, ‘plyr’, ‘Rcpp’, ‘stringr’, ‘labeling’, ‘munsell’, ‘R6’, ‘RColorBrewer’, ‘cli’, ‘crayon’, ‘fansi’, ‘pillar’, ‘pkgconfig’, ‘digest’, ‘gtable’, ‘lazyeval’, ‘reshape2’, ‘rlang’, ‘scales’, ‘tibble’, ‘viridisLite’, ‘withr’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/backports_1.1.4.zip'
Content type 'application/zip' length 66819 bytes (65 KB)
downloaded 65 KB

And it continues to download files endlessly
I am using R version 3.6.1
RStudio version 1.2.1335

The first thing you have to solve is installing Rtools, this is a separate software not an R package, you can download it from here
https://cran.r-project.org/bin/windows/Rtools/

Also, have in mind that you are missing a lot of dependencies, this is going to take a while, so be patient.

Thanks a lot. It is installed.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.