# Strange error " /bin/sh: cmdstan: command not found" when using cmdstanr in RMarkdown

**URL:** <https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625>\
**Category:** Modeling\
**Created:** [September 1, 2023, 10:48am UTC](https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625 "2023-09-01T10:48:50Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![jgcolman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jgcolman/32/836_2.png) [@jgcolman](https://discourse.mc-stan.org/u/jgcolman)\
**Post date:** [September 21, 2023, 3:31pm UTC](https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625/21 "2023-09-21T15:31:46Z")

</div>

I’ve done that. Let me know if you need me to do anything else for you to see what I’ve suggested.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [September 21, 2023, 3:40pm UTC](https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625/22 "2023-09-21T15:40:48Z")

</div>

That worked, thanks! It might not be until next week that I have a chance to give this a proper review but I’ll let you know. When we do review it we’ll make any comments/suggestions over at [Update r-markdown.Rmd by jgcolman · Pull Request #854 · stan-dev/cmdstanr · GitHub](https://github.com/stan-dev/cmdstanr/pull/854). Thanks again!

---

<div class="post-metadata">

**Author:** ![jgcolman](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jgcolman/32/836_2.png) [@jgcolman](https://discourse.mc-stan.org/u/jgcolman)\
**Post date:** [September 21, 2023, 3:42pm UTC](https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625/23 "2023-09-21T15:42:48Z")

</div>

OK I look forward to seeing your comments/suggestions.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [September 21, 2023, 6:43pm UTC](https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625/24 "2023-09-21T18:43:02Z")

</div>

Actually I had a brief moment to take a look and I made a comment here: [Update r-markdown.Rmd by jgcolman · Pull Request #854 · stan-dev/cmdstanr · GitHub](https://github.com/stan-dev/cmdstanr/pull/854#discussion_r1333459720). Let me know there if you’re ok with my proposed edits.

I will take a more thorough look next week (I’ll be traveling the next few days) and see if I notice anything else. Thanks again.

[Previous page](https://discourse.mc-stan.org/t/strange-error-bin-sh-cmdstan-command-not-found-when-using-cmdstanr-in-rmarkdown/32625.md?page=1)
