Errors when using cmdstan_model()

Try adding C:\RBuildTools\3.5\mingw_64\bin to PATH and restart RStudio.