I am having troubles installing RStan. Anytime I try, my code returns False.
install.packages("rstan")
pkgbuild::has_build_tools(debug = TRUE)
Scanning R CMD config CC...
cc_path:
'' does not exist
Scanning path...
Scanning registry...
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools custom from https://cran.r-project.org/bin/windows/Rtools/.
[1] FALSE
Once it gives me the WARNING message, it asks me if I want to install Rtools. I click "Yes" and then it returns [1] FALSE. And Rtools is not installed. Could someone advise please?
Operating System: Windows 10
Interface Version: RStan.
Compiler/Toolkit: g++