# Installing RStan (and StanHeaders) on Windows ATM

**URL:** <https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132>\
**Category:** RStan\
**Tags:** rstan\
**Created:** [February 16, 2020, 2:07am UTC](https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132 "2020-02-16T02:07:15Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [February 16, 2020, 2:07am UTC](https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132/1 "2020-02-16T02:07:15Z")

</div>

CRAN seems to be a bit slow building binary packages for Windows, but if you need them, you can do

```
install.packages("rstan", type = "win.binary", dependencies = TRUE)
install.packages(
"https://win-builder.r-project.org/T2ykU6N3Pmk4/StanHeaders_2.19.2.zip",
repos = NULL, type = "win.binary")

```

---

<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:** [March 18, 2020, 5:24pm UTC](https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132/2 "2020-03-18T17:24:19Z")

</div>

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")

```

---

<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 23, 2020, 2:43am UTC](https://discourse.mc-stan.org/t/installing-rstan-and-stanheaders-on-windows-atm/13132/3 "2020-04-23T02:43:48Z")

</div>

Now do

```
install.packages("rstan", type = "win.binary", dependencies = TRUE)
install.packages(
"https://win-builder.r-project.org/aRC5uk2E56sw/StanHeaders_2.19.2.zip",
repos = NULL, type = "win.binary")

```
