# \#windows

**URL:** https://discourse.mc-stan.org/tag/windows/11.md

[Latest](https://discourse.mc-stan.org/latest.md) · [Categories](https://discourse.mc-stan.org/categories.md) · [Tags](https://discourse.mc-stan.org/tags.md)

---

## [Cannot install Cmdstan due to Windows 11 permissions issue](https://discourse.mc-stan.org/t/cannot-install-cmdstan-due-to-windows-11-permissions-issue/41382)

<div class="topic-metadata">

**Author:** [@qdread](https://discourse.mc-stan.org/u/qdread)\
**Replies:** 1\
**Last updated:** [June 26, 2026, 6:33pm UTC](https://discourse.mc-stan.org/t/cannot-install-cmdstan-due-to-windows-11-permissions-issue/41382 "2026-06-26T18:33:35Z")

</div>

Hello, I am a Stan user who has to use a work PC that is configured with various restrictions. I have had issues installing Cmdstan in the past ( Windows 11 cmdstan installation issue: Architecture not detected, related …

---

## [Abysmal performance on a new AMD laptop with windows 11](https://discourse.mc-stan.org/t/abysmal-performance-on-a-new-amd-laptop-with-windows-11/40642)

<div class="topic-metadata">

**Author:** [@zacho](https://discourse.mc-stan.org/u/zacho)\
**Replies:** 11\
**Last updated:** [November 25, 2025, 8:29pm UTC](https://discourse.mc-stan.org/t/abysmal-performance-on-a-new-amd-laptop-with-windows-11/40642 "2025-11-25T20:29:41Z")

</div>

Good day all, I need help with speeding up my hardware, which is inexcusably slow. I suspect it’s my OS or some aspect of the setup. I have a new laptop through my university running (unfortunately) Windows 11. The CPU…

---

## [Problem Installing cmdstan on Surface Pro 9 with Windows 11](https://discourse.mc-stan.org/t/problem-installing-cmdstan-on-surface-pro-9-with-windows-11/39355)

<div class="topic-metadata">

**Author:** [@TheGeekGreek](https://discourse.mc-stan.org/u/TheGeekGreek)\
**Replies:** 5\
**Last updated:** [July 10, 2025, 7:06pm UTC](https://discourse.mc-stan.org/t/problem-installing-cmdstan-on-surface-pro-9-with-windows-11/39355 "2025-07-10T19:06:08Z")

</div>

I am using R version 4.3.2 (2023-10-31 ucrt) – “Eye Holes” and want to install cmdstanr. When using install\_cmdstan() I get the error message In file included from c:\\rtools43\\x86\_64-w64-mingw32.static.posix\\lib\\gcc\\x…

---

## [Warning that I need to install Rtools when I already have it installed](https://discourse.mc-stan.org/t/warning-that-i-need-to-install-rtools-when-i-already-have-it-installed/32723)

<div class="topic-metadata">

**Author:** [@jd\_c](https://discourse.mc-stan.org/u/jd_c)\
**Replies:** 14\
**Last updated:** [May 17, 2024, 2:27pm UTC](https://discourse.mc-stan.org/t/warning-that-i-need-to-install-rtools-when-i-already-have-it-installed/32723 "2024-05-17T14:27:01Z")

</div>

Howdy! I am trying to install rstan on a computer with Windows 10 that is very troublesome due to lots of clamped down security. I have R 4.3.0 and Rtools 4.3 installed. I can only install binaries from a http CRAN repos…

---

## [LoadLibrary failure: when compiling model methods with cmdstanr and Rtools 4.3](https://discourse.mc-stan.org/t/loadlibrary-failure-when-compiling-model-methods-with-cmdstanr-and-rtools-4-3/32443)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Replies:** 7\
**Last updated:** [April 16, 2024, 12:19am UTC](https://discourse.mc-stan.org/t/loadlibrary-failure-when-compiling-model-methods-with-cmdstanr-and-rtools-4-3/32443 "2024-04-16T00:19:49Z")

</div>

When trying to use the new infrastructure to expose model methods with cmdstanr 0.6 on Windows 10, R 4.3.1 and Rtools 4.3 I get the following message: Error in inDL(x, as.logical(local), as.logical(now), ...) : unabl…

---

## [Cmdstan install error](https://discourse.mc-stan.org/t/cmdstan-install-error/34066)

<div class="topic-metadata">

**Author:** [@dslramsey](https://discourse.mc-stan.org/u/dslramsey)\
**Replies:** 7\
**Last updated:** [February 12, 2024, 2:53am UTC](https://discourse.mc-stan.org/t/cmdstan-install-error/34066 "2024-02-12T02:53:54Z")

</div>

Hi, I have recently been in receipt of a new laptop and have been trying to install cmdstan and have run into an issue. My environment is Win10 enterprise (but with admin priviliges) R version 4.3.2 Rstudio 2023.12…

---

## [Guide: Diagnosing a complete lack of output on Windows](https://discourse.mc-stan.org/t/guide-diagnosing-a-complete-lack-of-output-on-windows/30656)

<div class="topic-metadata">

**Author:** [@WardBrian](https://discourse.mc-stan.org/u/WardBrian)\
**Replies:** 8\
**Last updated:** [October 23, 2023, 1:18am UTC](https://discourse.mc-stan.org/t/guide-diagnosing-a-complete-lack-of-output-on-windows/30656 "2023-10-23T01:18:04Z")

</div>

I have now encountered this bug a few times in the wild so I thought it would be worth documenting. Hopefully it can serve as a reference. The symptoms Occasionally, Windows users will run into an issue where a CmdStan …

---

## [Cmdstanr installation error](https://discourse.mc-stan.org/t/cmdstanr-installation-error/32702)

<div class="topic-metadata">

**Author:** [@Copula\_H](https://discourse.mc-stan.org/u/Copula_H)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 10:17pm UTC](https://discourse.mc-stan.org/t/cmdstanr-installation-error/32702 "2023-09-10T22:17:08Z")

</div>

Hi, I updated my R version to 4.3.1 and have had to reinstall cmdstanr. I use the code install.packages(“cmdstanr”, repos = c(“Repository for distributing (some) stan-dev R packages | r-packages”, getOption(“repos”))) …

---

## [Rstan not compiling on windows. Please help!](https://discourse.mc-stan.org/t/rstan-not-compiling-on-windows-please-help/32588)

<div class="topic-metadata">

**Author:** [@JoshK](https://discourse.mc-stan.org/u/JoshK)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 8:57am UTC](https://discourse.mc-stan.org/t/rstan-not-compiling-on-windows-please-help/32588 "2023-08-29T08:57:51Z")

</div>

Solved by using comments on this thread - Error installing rstan Hello, I am a complete beginner with R. I only decided to use it in order to do Richard McElreath’s very interesting book Statistical Rethinking, which …

---

## [CmdStan not creating .exe file after make build phase](https://discourse.mc-stan.org/t/cmdstan-not-creating-exe-file-after-make-build-phase/32473)

<div class="topic-metadata">

**Author:** [@LucasFiorini](https://discourse.mc-stan.org/u/LucasFiorini)\
**Replies:** 1\
**Last updated:** [August 17, 2023, 6:22pm UTC](https://discourse.mc-stan.org/t/cmdstan-not-creating-exe-file-after-make-build-phase/32473 "2023-08-17T18:22:01Z")

</div>

Hello, I’m trying to translate Stan code to C++, I cloned the cmdStan repository, I ran the mingw32-make build command, and it shows up a message that it was built with no errors. But I can’t seem to find the example ex…

---

## [Problem running stan() function. October 2022. R version 4.2.1. Windows 10](https://discourse.mc-stan.org/t/problem-running-stan-function-october-2022-r-version-4-2-1-windows-10/29199)

<div class="topic-metadata">

**Author:** [@Salvador\_Rodriguez](https://discourse.mc-stan.org/u/Salvador_Rodriguez)\
**Replies:** 3\
**Last updated:** [October 19, 2022, 8:36pm UTC](https://discourse.mc-stan.org/t/problem-running-stan-function-october-2022-r-version-4-2-1-windows-10/29199 "2022-10-19T20:36:15Z")

</div>

I am unable to run the stan function from the rstan package. I get the next error: \*Error in compileCode(f, code, language = language, verbose = verbose) : \* \* C:\\rtools42\\x86\_64-w64-mingw32.static.posix\\bin/ld.exe: fi…

---

## [CmdStanR with Windows Subsystem for Linux may compile model way slower than CmdStanR with (pure) Windows?](https://discourse.mc-stan.org/t/cmdstanr-with-windows-subsystem-for-linux-may-compile-model-way-slower-than-cmdstanr-with-pure-windows/28381)

<div class="topic-metadata">

**Author:** [@CLRR](https://discourse.mc-stan.org/u/CLRR)\
**Replies:** 13\
**Last updated:** [August 1, 2022, 7:07pm UTC](https://discourse.mc-stan.org/t/cmdstanr-with-windows-subsystem-for-linux-may-compile-model-way-slower-than-cmdstanr-with-pure-windows/28381 "2022-08-01T19:07:06Z")

</div>

I found that the compiling speed of CmdStanR (0.5.3) with Windows Subsystem for Linux (WSL) is 6 times slower than CmdStanR with (pure) Windows, at least in my environment. Is this reproducible phenomenon in any other Wi…

---

## [New computer...Mac or Windows, RStan or CmdStanR?](https://discourse.mc-stan.org/t/new-computer-mac-or-windows-rstan-or-cmdstanr/27660)

<div class="topic-metadata">

**Author:** [@Al\_in\_Sweden](https://discourse.mc-stan.org/u/Al_in_Sweden)\
**Replies:** 23\
**Last updated:** [July 18, 2022, 9:55pm UTC](https://discourse.mc-stan.org/t/new-computer-mac-or-windows-rstan-or-cmdstanr/27660 "2022-07-18T21:55:33Z")

</div>

Hello…I hope this great community can kindly share any advice, tips and personal experiences with me. I have been using an iMac + Stan + RStan + RStudio, and have been delighted with how fantastic it all works…brillian…

---

## [Error with RStan 2.26 and RTools 42](https://discourse.mc-stan.org/t/error-with-rstan-2-26-and-rtools-42/27343)

<div class="topic-metadata">

**Author:** [@Signorelli](https://discourse.mc-stan.org/u/Signorelli)\
**Replies:** 2\
**Last updated:** [May 5, 2022, 3:17pm UTC](https://discourse.mc-stan.org/t/error-with-rstan-2-26-and-rtools-42/27343 "2022-05-05T15:17:38Z")

</div>

When i run the test in rstan based on the shools\_dat file I get a long series of errors. It is the same for other tests. schools\_dat \<- list(J = 8, + y = c(28, 8, -3, 7, -1, 1, 18, 12), + …

---

## [New error: cleanup\_makevar(old) : argument "RMU" is missing, with no default](https://discourse.mc-stan.org/t/new-error-cleanup-makevar-old-argument-rmu-is-missing-with-no-default/18137)

<div class="topic-metadata">

**Author:** [@jkalley](https://discourse.mc-stan.org/u/jkalley)\
**Replies:** 74\
**Last updated:** [June 28, 2021, 1:39am UTC](https://discourse.mc-stan.org/t/new-error-cleanup-makevar-old-argument-rmu-is-missing-with-no-default/18137 "2021-06-28T01:39:33Z")

</div>

Hi all, After moving to R 4.0 and the most recent version of STAN, I’m getting a really strange error while trying to compile using stan\_model. The process throws an error with: Error in cleanup\_makevar(old) : argument…

---

## [Using Make in PowerShell to build CmdStan on Windows 10](https://discourse.mc-stan.org/t/using-make-in-powershell-to-build-cmdstan-on-windows-10/21215)

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.mc-stan.org/u/bparbhu)\
**Replies:** 14\
**Last updated:** [March 11, 2021, 7:45pm UTC](https://discourse.mc-stan.org/t/using-make-in-powershell-to-build-cmdstan-on-windows-10/21215 "2021-03-11T19:45:10Z")

</div>

Hey all, So I’m working on creating an msi installer using NSIS for Cmdstan. One of the things I’m trying to do is to make the process happen within the Powershell terminal. One of the nice things about the Windows 10…

---

## [Memory issues with custom model](https://discourse.mc-stan.org/t/memory-issues-with-custom-model/21206)

<div class="topic-metadata">

**Author:** [@tristansnowsill](https://discourse.mc-stan.org/u/tristansnowsill)\
**Replies:** 5\
**Last updated:** [March 10, 2021, 7:13pm UTC](https://discourse.mc-stan.org/t/memory-issues-with-custom-model/21206 "2021-03-10T19:13:40Z")

</div>

Hello I am working on a model at the moment to fit simulated data (if I have coded correctly the model should exactly match the data generating process). The problem I am having is a massive memory blow-up when I run it…

---

## [Brms no longer works](https://discourse.mc-stan.org/t/brms-no-longer-works/20385)

<div class="topic-metadata">

**Author:** [@markseeto](https://discourse.mc-stan.org/u/markseeto)\
**Replies:** 22\
**Last updated:** [January 25, 2021, 8:31am UTC](https://discourse.mc-stan.org/t/brms-no-longer-works/20385 "2021-01-25T08:31:44Z")

</div>

I recently tried using the brms package in R (Windows 10) for the first time in a while, and I’ve found that it no longer works. I’ve tried it in R 4.0.3 with brms 2.14.4 and rstan 2.21.2, and also in R 3.6.3 with brms …

---

## [Multiple definition problem - example stan\_model won't run](https://discourse.mc-stan.org/t/multiple-definition-problem-example-stan-model-wont-run/20162)

<div class="topic-metadata">

**Author:** [@kblake](https://discourse.mc-stan.org/u/kblake)\
**Replies:** 20\
**Last updated:** [January 21, 2021, 6:40pm UTC](https://discourse.mc-stan.org/t/multiple-definition-problem-example-stan-model-wont-run/20162 "2021-01-21T18:40:05Z")

</div>

Hi all, I can’t get the example stan model to run example(stan\_model, run.dontrun = TRUE). It looks like a multiple definition problem with ld.exe. I’ve tried re-installing R, all my packages, and reinstalling Rtools. …

---

## [Optimize method of cmdstanr occasionally fails with warning message "Fitting finished unexpectedly!"](https://discourse.mc-stan.org/t/optimize-method-of-cmdstanr-occasionally-fails-with-warning-message-fitting-finished-unexpectedly/20100)

<div class="topic-metadata">

**Author:** [@Michael\_Peck](https://discourse.mc-stan.org/u/Michael_Peck)\
**Replies:** 2\
**Last updated:** [January 8, 2021, 1:51am UTC](https://discourse.mc-stan.org/t/optimize-method-of-cmdstanr-occasionally-fails-with-warning-message-fitting-finished-unexpectedly/20100 "2021-01-08T01:51:50Z")

</div>

Questions like this annoy me, so apologies in advance for asking it. I’ve been using cmdstanr since (I think) late May to take advantage of reduce\_sum() in cmdstan, and have used it without error on thousands of data se…

---

## [Continued compiling problems rstan 2.21.2 with R 4.0.3 and rtools40 (windows)](https://discourse.mc-stan.org/t/continued-compiling-problems-rstan-2-21-2-with-r-4-0-3-and-rtools40-windows/19511)

<div class="topic-metadata">

**Author:** [@graden](https://discourse.mc-stan.org/u/graden)\
**Replies:** 15\
**Last updated:** [December 18, 2020, 5:55pm UTC](https://discourse.mc-stan.org/t/continued-compiling-problems-rstan-2-21-2-with-r-4-0-3-and-rtools40-windows/19511 "2020-12-18T17:55:38Z")

</div>

Dear all, I love Bayes & Stan immensely, and thank you for you work. This is my first time posting. Before I begin, let me say I’ve read and tried everything in the related threads by @bgoodri including the further prob…

---

## [Rstan installation problem](https://discourse.mc-stan.org/t/rstan-installation-problem/18813)

<div class="topic-metadata">

**Author:** [@gao\_jie](https://discourse.mc-stan.org/u/gao_jie)\
**Replies:** 4\
**Last updated:** [November 3, 2020, 11:27pm UTC](https://discourse.mc-stan.org/t/rstan-installation-problem/18813 "2020-11-03T23:27:21Z")

</div>

Hi, I had Rstan running, it took one hour for my computer while it took 1 minute on other people’s computer. So I decided to reinstall R, Rstudio, Rstan, and Rtools. However, after I re-installed everything, it runs f…

---

## [Workarounds for current Rstan Windows issues](https://discourse.mc-stan.org/t/workarounds-for-current-rstan-windows-issues/17389)

<div class="topic-metadata">

**Author:** [@rok\_cesnovar](https://discourse.mc-stan.org/u/rok_cesnovar)\
**Replies:** 4\
**Last updated:** [August 24, 2020, 6:45am UTC](https://discourse.mc-stan.org/t/workarounds-for-current-rstan-windows-issues/17389 "2020-08-24T06:45:27Z")

</div>

This is a list of the current RStan Windows problems and known temporary workarounds: Error includes something about prim/mat/fun/Eigen.hpp If your error is similar to g++.exe: error: Files/R/R-4.0.2/library/StanHead…

---

## [Rstan & Windows: corrupt RStudio project?](https://discourse.mc-stan.org/t/rstan-windows-corrupt-rstudio-project/17572)

<div class="topic-metadata">

**Author:** [@JohnnyZoom4H](https://discourse.mc-stan.org/u/JohnnyZoom4H)\
**Replies:** 0\
**Last updated:** [August 20, 2020, 4:50pm UTC](https://discourse.mc-stan.org/t/rstan-windows-corrupt-rstudio-project/17572 "2020-08-20T16:50:06Z")

</div>

Here is my contribution to the multiple discussions about troubleshooting rstan on Windows. I had been having serious issues with rstan runs failing with different incomprehensible errors, or even crashing RStudio. I t…

---

## [Exporting to a dataframe the summaries from a brmsMarginalEffects object](https://discourse.mc-stan.org/t/exporting-to-a-dataframe-the-summaries-from-a-brmsmarginaleffects-object/4257)

<div class="topic-metadata">

**Author:** [@realkrantz](https://discourse.mc-stan.org/u/realkrantz)\
**Replies:** 7\
**Last updated:** [October 23, 2018, 9:36am UTC](https://discourse.mc-stan.org/t/exporting-to-a-dataframe-the-summaries-from-a-brmsmarginaleffects-object/4257 "2018-10-23T09:36:46Z")

</div>

I would like to get in a data.frame format the means/medians and their credible intervals from brmsMarginalEffects objects like the one below: library(rstan) library(brms) fit \<- brm(count ~ log\_Age\_c + log\_Base4\_c \* …

---

## [Help needed: RStan 2.18.1 on windows with a Coffee Lake processor](https://discourse.mc-stan.org/t/help-needed-rstan-2-18-1-on-windows-with-a-coffee-lake-processor/6223)

<div class="topic-metadata">

**Author:** [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Replies:** 13\
**Last updated:** [October 29, 2018, 2:23pm UTC](https://discourse.mc-stan.org/t/help-needed-rstan-2-18-1-on-windows-with-a-coffee-lake-processor/6223 "2018-10-29T14:23:34Z")

</div>

Is there anyone that Has a Coffee Lake processor (likely if you bought your computer new in the last 12 months) Uses Windows Has already installed rstan 2.18.1 (don’t if you haven’t already) Is willing to test whether …

---

## [Windows Install without Admin Rights](https://discourse.mc-stan.org/t/windows-install-without-admin-rights/1446)

<div class="topic-metadata">

**Author:** [@Bayesian3](https://discourse.mc-stan.org/u/Bayesian3)\
**Replies:** 6\
**Last updated:** [April 13, 2018, 10:44pm UTC](https://discourse.mc-stan.org/t/windows-install-without-admin-rights/1446 "2018-04-13T22:44:45Z")

</div>

Operating System: Windows 7 Enterprise Interface Version: TBD Compiler/Toolkit: TBD Is there a way to install Stan on a Windows 7 machine without admin rights? I could use Matlab, R, or Python, or I would be willing t…

---

## [Error in new\_Cppobjects\_xp](https://discourse.mc-stan.org/t/error-in-new-cppobjects-xp/1690)

<div class="topic-metadata">

**Author:** [@Troels](https://discourse.mc-stan.org/u/Troels)\
**Replies:** 4\
**Last updated:** [August 26, 2017, 4:59pm UTC](https://discourse.mc-stan.org/t/error-in-new-cppobjects-xp/1690 "2017-08-26T16:59:56Z")

</div>

Operating System:Windows 7 or 10 Interface Version: rstan (Version 2.16.2 Compiler/Toolkit: Hi, I’m new to Stan. Installed to Windows 7 and 10 as described in https://github.com/stan-dev/rstan/wiki/Installing-RStan-on…
