In system(paste(cmd, "-n")) : 'make' not found. And slow speed

In a clean R session, you need to follow

Then try doing

library(rstan)
example(example_model, run.dontrun = TRUE)

again. But if

Sys.which("make")

is not returning anything, then there likely is a problem with your RTools.