Hi @hy2022, the error says you haven’t set rtools path in your environment, you may want to follow this guide Installing CmdStanR on Windows - Max's Blog which helped me a lot when I switched from rstan to cmdstanr. This post may also help you a bit Error when installing CmdStan in Rstudio. The installation of the cmdstanr on Windows is pretty smooth now.