I am using RStudio version 1.2.x or greater, but click on File -> New File -> Stan File No Stan File

Short summary of the problem
I complet novice. I followed the installation instruction from the GitHub: RStan Getting Started. I got there from http://mc-stan.org/.
I opened a new file and ran:
library(“rstan”) # observe startup messages
options(mc.cores = parallel::detectCores())

Everything seemed to work.

But when I clicked on FIle->New File->Stan File, there was no Stan file on the list.
I then copied the “Example ! Eight Schools” shown and it didn’t run

I am SURE others have made the mistakes I made, but I cannot find the thread, so I created this topic to try to get help.

Please help!
Windows 10
Rstan Version: 2.21.1
RStudio Version 1.1.456


If possible, add also code to simulate data or attach a (subset of) the dataset you work with.

Don’t forget to add relevant tags to your topic (top right of this form) especially for application area. Delete this text before posting your question :-) Thx!

If your question relates to installation please provide the following information:

  • Operating System
  • RStan Version
  • Output of writeLines(readLines(file.path(Sys.getenv("HOME"), ".R/Makevars")))
  • Output of devtools::session_info("rstan")

If you are reporting a bug (thank you!) please use the issue tracker (Issues · stan-dev/rstan · GitHub) instead of the forums.

Looking forward to your topic!