Problems installing rstan 2.21.2 with Rtools 4

That’s interesting, the parser is failing because of how you’ve written your comments:

//#cannot be less than 0

If you remove the # then it all works