# Something went wrong, when calling Stan. Check any debug messages for clues, detective. invalid connection

**URL:** <https://discourse.mc-stan.org/t/something-went-wrong-when-calling-stan-check-any-debug-messages-for-clues-detective-invalid-connection/14299>\
**Category:** Modeling\
**Tags:** rstan\
**Created:** [April 14, 2020, 4:09am UTC](https://discourse.mc-stan.org/t/something-went-wrong-when-calling-stan-check-any-debug-messages-for-clues-detective-invalid-connection/14299 "2020-04-14T04:09:41Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [April 15, 2020, 2:19am UTC](https://discourse.mc-stan.org/t/something-went-wrong-when-calling-stan-check-any-debug-messages-for-clues-detective-invalid-connection/14299/5 "2020-04-15T02:19:52Z")

</div>

You most likely just need to do

> [@Installing RStan (and StanHeaders) on Windows ATM](https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132/2):
>
> Now do install.packages("rstan", type = "win.binary", dependencies = TRUE) install.packages( "https://win-builder.r-project.org/9256KcZ01L9C/StanHeaders\_2.19.2.zip", repos = NULL, type = "win.binary")

---

_[View the full topic](https://discourse.mc-stan.org/t/something-went-wrong-when-calling-stan-check-any-debug-messages-for-clues-detective-invalid-connection/14299)._
