# Other

**URL:** https://discourse.mc-stan.org/c/interfaces/other-interfaces/31.md?page=1

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

**Page:** 2

---

## [Reviewing \`stantargets\` R package](https://discourse.mc-stan.org/t/reviewing-stantargets-r-package/21391)

<div class="topic-metadata">

**Author:** [@sakrejda](https://discourse.mc-stan.org/u/sakrejda)\
**Replies:** 8\
**Last updated:** [April 8, 2021, 1:46pm UTC](https://discourse.mc-stan.org/t/reviewing-stantargets-r-package/21391 "2021-04-08T13:46:21Z")

</div>

Hey Stanimals! I agreed to do a review of the stantargets package for ropensci’s process. It’s been really cool to dig through a package from the reviewer perspective and I’m posting to ask for your experiences with th…

---

## [ScalaStan](https://discourse.mc-stan.org/t/scalastan/20662)

<div class="topic-metadata">

**Author:** [@larryns](https://discourse.mc-stan.org/u/larryns)\
**Replies:** 5\
**Last updated:** [February 9, 2021, 1:03am UTC](https://discourse.mc-stan.org/t/scalastan/20662 "2021-02-09T01:03:35Z")

</div>

Hi, Is ScalaStan no longer available/supported? I went to the github page and got a 404. Does anyone know of another interface for Stan for either Scala or Java? Thanks for any help, Larry.

---

## [Shinystan for cmdstan output](https://discourse.mc-stan.org/t/shinystan-for-cmdstan-output/20043)

<div class="topic-metadata">

**Author:** [@ducoveen](https://discourse.mc-stan.org/u/ducoveen)\
**Replies:** 6\
**Last updated:** [January 6, 2021, 2:55pm UTC](https://discourse.mc-stan.org/t/shinystan-for-cmdstan-output/20043 "2021-01-06T14:55:16Z")

</div>

Hello everyone, I’ve spend a little bit of time on creating a version of shinystan that will take as upload .csv file(s) output from cmdstan. This way it should be more accessible, not only for R users. Please take a lo…

---

## [Persistent cmdstanr compiled model objects](https://discourse.mc-stan.org/t/persistent-cmdstanr-compiled-model-objects/19587)

<div class="topic-metadata">

**Author:** [@saudiwin](https://discourse.mc-stan.org/u/saudiwin)\
**Replies:** 6\
**Last updated:** [December 2, 2020, 4:24pm UTC](https://discourse.mc-stan.org/t/persistent-cmdstanr-compiled-model-objects/19587 "2020-12-02T16:24:14Z")

</div>

Hi @jonah et al - I am wondering whether or not it is possible to store cmdstanr compiled model objects in a persistent manner. Currently it looks like the R6 object contains file paths to executables, however, these se…

---

## [CmdStanR: how to set C++ flags?](https://discourse.mc-stan.org/t/cmdstanr-how-to-set-c-flags/19104)

<div class="topic-metadata">

**Author:** [@tzakharko](https://discourse.mc-stan.org/u/tzakharko)\
**Replies:** 6\
**Last updated:** [November 7, 2020, 4:04pm UTC](https://discourse.mc-stan.org/t/cmdstanr-how-to-set-c-flags/19104 "2020-11-07T16:04:42Z")

</div>

I would like my models to be compiled with -march=native etc. Is there a straightforward way of setting C++ flags for the compile() method? I looked at cpp\_options but I can’t figure out how to use it to pass this kind o…

---

## ["failed text-action" when installing CmdStan via CmdStanR](https://discourse.mc-stan.org/t/failed-text-action-when-installing-cmdstan-via-cmdstanr/17589)

<div class="topic-metadata">

**Author:** [@martinmodrak](https://discourse.mc-stan.org/u/martinmodrak)\
**Replies:** 2\
**Last updated:** [October 30, 2020, 3:46am UTC](https://discourse.mc-stan.org/t/failed-text-action-when-installing-cmdstan-via-cmdstanr/17589 "2020-10-30T03:46:23Z")

</div>

When installing CmdStan 2.24.0 via CmdStanR on Windows 10 I got an error message message similar to: type "C:\\Users\\modrak\_m\\AppData\\Local\\Temp\\jam6818c95b4.000" \> "bin.v2\\libs\\program\_options\\build\\gcc-8.3.0\\release\\cx…

---

## [Cmdstanr installation error: Command not found @win/processx.c:977](https://discourse.mc-stan.org/t/cmdstanr-installation-error-command-not-found-win-processx-c-977/11970)

<div class="topic-metadata">

**Author:** [@Guido\_Biele](https://discourse.mc-stan.org/u/Guido_Biele)\
**Replies:** 41\
**Last updated:** [September 7, 2020, 2:58am UTC](https://discourse.mc-stan.org/t/cmdstanr-installation-error-command-not-found-win-processx-c-977/11970 "2020-09-07T02:58:57Z")

</div>

Operating System: Windows 10 Interface Version: cmdstanr 0.0.0.9000 Compiler/Toolkit: Rtools Hi, I am trying to install cmdstan on windows via cmdstanr (using install\_cmdstan()) and getting the following error: Err…

---

## [Integer overflow when using loo\_moment\_match](https://discourse.mc-stan.org/t/integer-overflow-when-using-loo-moment-match/16691)

<div class="topic-metadata">

**Author:** [@trinhdhk](https://discourse.mc-stan.org/u/trinhdhk)\
**Replies:** 5\
**Last updated:** [July 24, 2020, 7:46am UTC](https://discourse.mc-stan.org/t/integer-overflow-when-using-loo-moment-match/16691 "2020-07-24T07:46:07Z")

</div>

Problem: Integer Overflow when using loo\_moment\_match() github issue: https://github.com/stan-dev/loo/issues/151 What I did: loo\_moment\_match for a stanfit model, following the vignette here, with all default parame…

---

## [CmdstanR - Error in validate\_sample\_args](https://discourse.mc-stan.org/t/cmdstanr-error-in-validate-sample-args/16918)

<div class="topic-metadata">

**Author:** [@GustafRydevik](https://discourse.mc-stan.org/u/GustafRydevik)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 4:21pm UTC](https://discourse.mc-stan.org/t/cmdstanr-error-in-validate-sample-args/16918 "2020-07-23T16:21:16Z")

</div>

Hi all, While waiting for the rstan issues for windows+R4.0.2 to get resolved, I’ve been trying to work with cmdstan instead, and am getting a strange error. I can run cmdstan\_model just fine, but when trying to run t…

---

## [Saving of CmdStanModel objects from cmdstanr](https://discourse.mc-stan.org/t/saving-of-cmdstanmodel-objects-from-cmdstanr/16220)

<div class="topic-metadata">

**Author:** [@Guido\_Biele](https://discourse.mc-stan.org/u/Guido_Biele)\
**Replies:** 7\
**Last updated:** [July 2, 2020, 2:47pm UTC](https://discourse.mc-stan.org/t/saving-of-cmdstanmodel-objects-from-cmdstanr/16220 "2020-07-02T14:47:43Z")

</div>

\[macOS High Sierra, R 4.0, cmdstanr\_0.0.0.9005\] After running a model with cmdstanr and saving it, I am sometimes unable to get the draws. Specifically, I first do the following: model = cmdstan\_mode("my\_model.stan") …

---

## [Cmdstanr compilation error when using std\_normal\_lpdf](https://discourse.mc-stan.org/t/cmdstanr-compilation-error-when-using-std-normal-lpdf/16295)

<div class="topic-metadata">

**Author:** [@josh\_fiechter](https://discourse.mc-stan.org/u/josh_fiechter)\
**Replies:** 2\
**Last updated:** [June 30, 2020, 2:06am UTC](https://discourse.mc-stan.org/t/cmdstanr-compilation-error-when-using-std-normal-lpdf/16295 "2020-06-30T02:06:27Z")

</div>

When I include the std\_normal\_lpdf function in my Stan code, cmdstan\_model() won’t compile the script and gives me a warning saying that I need a “|” between the first two arguments of any “\_lpdf” function. But std\_norma…

---

## [Bayesplot mcmc\_areas line and grid width manipulation](https://discourse.mc-stan.org/t/bayesplot-mcmc-areas-line-and-grid-width-manipulation/16001)

<div class="topic-metadata">

**Author:** [@Tay](https://discourse.mc-stan.org/u/Tay)\
**Replies:** 3\
**Last updated:** [June 18, 2020, 4:51pm UTC](https://discourse.mc-stan.org/t/bayesplot-mcmc-areas-line-and-grid-width-manipulation/16001 "2020-06-18T16:51:01Z")

</div>

Short summary of the problem Trouble changing ridgeline width of posterior density plots drawn with mcmc\_areas command I’m not so sure if this is the right place to ask this question but here it goes: I am using the m…

---

## [cmdstanR install trouble](https://discourse.mc-stan.org/t/cmdstanr-install-trouble/15083)

<div class="topic-metadata">

**Author:** [@wds15](https://discourse.mc-stan.org/u/wds15)\
**Replies:** 3\
**Last updated:** [May 13, 2020, 9:58am UTC](https://discourse.mc-stan.org/t/cmdstanr-install-trouble/15083 "2020-05-13T09:58:44Z")

</div>

I have a lot of time issues installing CmdStanR on my system. The issue is with my system causing warnings during unpacking with tar. These warnings are turned into errors by default resulting in installation failure. I…

---

## [CmdStanPy cpp\_options for multi-threading](https://discourse.mc-stan.org/t/cmdstanpy-cpp-options-for-multi-threading/14759)

<div class="topic-metadata">

**Author:** [@stantheman](https://discourse.mc-stan.org/u/stantheman)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 10:56am UTC](https://discourse.mc-stan.org/t/cmdstanpy-cpp-options-for-multi-threading/14759 "2020-05-02T10:56:06Z")

</div>

I’m trying to use the latest version of CmdStanPy to run sampling on my stan model which uses map\_rect. However, it looks like CmdStanPy’s CmdStanModel cpp\_options doesn’t allow specifying compiler options like ‘-pthread…

---

## [Matlabstan Problem getting stan version](https://discourse.mc-stan.org/t/matlabstan-problem-getting-stan-version/14146)

<div class="topic-metadata">

**Author:** [@MechB](https://discourse.mc-stan.org/u/MechB)\
**Replies:** 1\
**Last updated:** [April 14, 2020, 3:10pm UTC](https://discourse.mc-stan.org/t/matlabstan-problem-getting-stan-version/14146 "2020-04-14T15:10:54Z")

</div>

Operating System: Windows 10, MATLAB R2017a Interface Version: MatlabStan-2.15.1.0, cmdstan v2.22.1 Compiler/Toolkit:mingw64 Hello, I have the same problem like stated out here: I am also trying to run the 8 school…

---

## [New Ruby Interface for CmdStan](https://discourse.mc-stan.org/t/new-ruby-interface-for-cmdstan/14247)

<div class="topic-metadata">

**Author:** [@ankane](https://discourse.mc-stan.org/u/ankane)\
**Replies:** 0\
**Last updated:** [April 11, 2020, 1:38pm UTC](https://discourse.mc-stan.org/t/new-ruby-interface-for-cmdstan/14247 "2020-04-11T13:38:29Z")

</div>

I’m happy to announce there’s now a Ruby interface for CmdStan. It’s modeled after CmdStanPy and currently supports the methods/options that are used by Prophet. If you have any feedback, feel free to open an issue on t…

---

## [Error in system(cmd, intern = !verbose) : 'C:/Program' not found Error in sink(type = "output") : invalid connection](https://discourse.mc-stan.org/t/error-in-system-cmd-intern-verbose-c-program-not-found-error-in-sink-type-output-invalid-connection/13337)

<div class="topic-metadata">

**Author:** [@edithq](https://discourse.mc-stan.org/u/edithq)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 2:15pm UTC](https://discourse.mc-stan.org/t/error-in-system-cmd-intern-verbose-c-program-not-found-error-in-sink-type-output-invalid-connection/13337 "2020-03-02T14:15:43Z")

</div>

Operating System: Windows 10 Interface Version: rstan 3.5 Compiler/Toolkit: Rstudio I was trying to run an example from the package edstan, and had the error message. library(‘edstan’) X ← spelling\[, 2:5\] W ← cbin…

---

## [Cmdstanr and rstudio stan syntax highlighting](https://discourse.mc-stan.org/t/cmdstanr-and-rstudio-stan-syntax-highlighting/13072)

<div class="topic-metadata">

**Author:** [@spinkney](https://discourse.mc-stan.org/u/spinkney)\
**Replies:** 5\
**Last updated:** [February 12, 2020, 9:59am UTC](https://discourse.mc-stan.org/t/cmdstanr-and-rstudio-stan-syntax-highlighting/13072 "2020-02-12T09:59:33Z")

</div>

Is it possible to have rstudio stan syntax up-to-date with the newest Stan version when using cmdstanr?

---

## [Problems running multiple chains in cmdstanr](https://discourse.mc-stan.org/t/problems-running-multiple-chains-in-cmdstanr/11997)

<div class="topic-metadata">

**Author:** [@bbbales2](https://discourse.mc-stan.org/u/bbbales2)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 11:33pm UTC](https://discourse.mc-stan.org/t/problems-running-multiple-chains-in-cmdstanr/11997 "2019-11-19T23:33:50Z")

</div>

Making this thread to upload some files that Github didn’t want to accept on a cmdstanr issue. Edit: Issue is here: https://github.com/stan-dev/cmdstanr/issues/92 test.R (563 Bytes) accel\_splines.stan (2.7 KB) accel\_spl…

---

## [Understanding the fit report header and finding warmups](https://discourse.mc-stan.org/t/understanding-the-fit-report-header-and-finding-warmups/11120)

<div class="topic-metadata">

**Author:** [@maydin](https://discourse.mc-stan.org/u/maydin)\
**Replies:** 12\
**Last updated:** [September 28, 2019, 5:54pm UTC](https://discourse.mc-stan.org/t/understanding-the-fit-report-header-and-finding-warmups/11120 "2019-09-28T17:54:54Z")

</div>

This question is not about a specific model, therefore I’m not posting the model here. I’m confused about some of the details of the reports and results from Stan fits in general. This is a report header from a recent S…

---

## [Interpreting a vector as a matrix in MATLABStan](https://discourse.mc-stan.org/t/interpreting-a-vector-as-a-matrix-in-matlabstan/10989)

<div class="topic-metadata">

**Author:** [@SebastianK](https://discourse.mc-stan.org/u/SebastianK)\
**Replies:** 0\
**Last updated:** [September 14, 2019, 5:31pm UTC](https://discourse.mc-stan.org/t/interpreting-a-vector-as-a-matrix-in-matlabstan/10989 "2019-09-14T17:31:13Z")

</div>

Hi, in a Stan model I defined a data matrix ‘x’ of size (NxK): data { int\<lower=0\> N; int\<lower=0\> K; int\<lower=0\> S; matrix\[N, K\] x; matrix\[N, S\] y; } parameters { vector\[K\] beta\[S\]; } model { for (s in 1:S…

---

## [Making auto differentiation thread-safe](https://discourse.mc-stan.org/t/making-auto-differentiation-thread-safe/10152)

<div class="topic-metadata">

**Author:** [@Nesta\_Bentum](https://discourse.mc-stan.org/u/Nesta_Bentum)\
**Replies:** 1\
**Last updated:** [August 13, 2019, 10:49am UTC](https://discourse.mc-stan.org/t/making-auto-differentiation-thread-safe/10152 "2019-08-13T10:49:42Z")

</div>

OS (Operating System): Linux CXX (Compiler): g++ CXX\_TYPE gcc Compiler version: 7.7 In my program I have multiple threads running stan math’s auto differentiation (A…

---

## [MCMCBayes, a MATLAB framework for Stan, JAGS, BUGS](https://discourse.mc-stan.org/t/mcmcbayes-a-matlab-framework-for-stan-jags-bugs/9836)

<div class="topic-metadata">

**Author:** [@Reuben\_Johnston](https://discourse.mc-stan.org/u/Reuben_Johnston)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 3:02pm UTC](https://discourse.mc-stan.org/t/mcmcbayes-a-matlab-framework-for-stan-jags-bugs/9836 "2019-07-22T15:02:59Z")

</div>

Operating System:Windows, Linux, Mac Interface Version:Latest Compiler/Toolkit:Depends on OS platform Hello everyone, I’m reaching out to inform everyone about a platform that I have been working on for many years no…

---

## [Hierarchical model for categorical data - sampling takes too long](https://discourse.mc-stan.org/t/hierarchical-model-for-categorical-data-sampling-takes-too-long/9472)

<div class="topic-metadata">

**Author:** [@ofirshan](https://discourse.mc-stan.org/u/ofirshan)\
**Replies:** 0\
**Last updated:** [July 1, 2019, 3:33pm UTC](https://discourse.mc-stan.org/t/hierarchical-model-for-categorical-data-sampling-takes-too-long/9472 "2019-07-01T15:33:13Z")

</div>

Hello STAN experts, I’m running a hierarchical model for predicting categorically distributed data – ratings made at different time points on a 0-10 scale, before and after receiving feedback. Specifically, the data wer…

---

## [How to use the Tests in MatlabStan?](https://discourse.mc-stan.org/t/how-to-use-the-tests-in-matlabstan/7846)

<div class="topic-metadata">

**Author:** [@brainwatcher](https://discourse.mc-stan.org/u/brainwatcher)\
**Replies:** 9\
**Last updated:** [March 5, 2019, 9:12pm UTC](https://discourse.mc-stan.org/t/how-to-use-the-tests-in-matlabstan/7846 "2019-03-05T21:12:42Z")

</div>

I am not familiar in using MatlabStan. I found the “Tests” folder under the MatlabStan directory. I have no idea of their aims. How could I use the scripts in it? Like TestBasicArray.m? Must I run these files before I us…

---

## [Building rstanarm-like packagee on travis with c++14](https://discourse.mc-stan.org/t/building-rstanarm-like-packagee-on-travis-with-c-14/6054)

<div class="topic-metadata">

**Author:** [@denne](https://discourse.mc-stan.org/u/denne)\
**Replies:** 19\
**Last updated:** [October 19, 2018, 12:25pm UTC](https://discourse.mc-stan.org/t/building-rstanarm-like-packagee-on-travis-with-c-14/6054 "2018-10-19T12:25:07Z")

</div>

As a followup to: it would be good to have some guidance of the settings to be used with travisci and c++14. rstanarm currently cannot serve as an example, because it fails on travis for some other reason. My own atte…

---

## [Issue due to too less digits?](https://discourse.mc-stan.org/t/issue-due-to-too-less-digits/4392)

<div class="topic-metadata">

**Author:** [@Olibats](https://discourse.mc-stan.org/u/Olibats)\
**Replies:** 9\
**Last updated:** [June 5, 2018, 7:12pm UTC](https://discourse.mc-stan.org/t/issue-due-to-too-less-digits/4392 "2018-06-05T19:12:45Z")

</div>

Hello, at first: I’m using cmdstan 2.16.0 with Matlabstan 2.15.1.0 I have working code in matlab to produce curves. To enable bayesian inference I transferred the code to stan. Interestingly at one certain step I get a…

---

## [Matlab problem with saving Stan models in mat file](https://discourse.mc-stan.org/t/matlab-problem-with-saving-stan-models-in-mat-file/4323)

<div class="topic-metadata">

**Author:** [@Masayuki\_Watanabe](https://discourse.mc-stan.org/u/Masayuki_Watanabe)\
**Replies:** 1\
**Last updated:** [June 5, 2018, 6:57am UTC](https://discourse.mc-stan.org/t/matlab-problem-with-saving-stan-models-in-mat-file/4323 "2018-06-05T06:57:14Z")

</div>

Operating System: Windows 10 Interface Version: Matlab Stan 2.15.1.0, and CmdStan 2.17.1 Compiler/Toolkit: Hi, I have a problem with saving a Stan model in a mat file in Matlab. When I try to save a Stan model in a …

---

## [Rethinking multi-level models](https://discourse.mc-stan.org/t/rethinking-multi-level-models/2333)

<div class="topic-metadata">

**Author:** [@lottybrand22](https://discourse.mc-stan.org/u/lottybrand22)\
**Replies:** 2\
**Last updated:** [April 26, 2018, 4:48pm UTC](https://discourse.mc-stan.org/t/rethinking-multi-level-models/2333 "2018-04-26T16:48:05Z")

</div>

Operating System: Mac OS Interface Version: Rstudio Compiler/Toolkit: rethinking package - Richard McElreath Hi there. Trying once again to start a topic for those using the rethinking package. I have a multi-level mo…

---

## [MatlabStan nansum function missing](https://discourse.mc-stan.org/t/matlabstan-nansum-function-missing/3800)

<div class="topic-metadata">

**Author:** [@Torben](https://discourse.mc-stan.org/u/Torben)\
**Replies:** 1\
**Last updated:** [April 13, 2018, 8:37pm UTC](https://discourse.mc-stan.org/t/matlabstan-nansum-function-missing/3800 "2018-04-13T20:37:49Z")

</div>

I just installed and tested MatlabStan and encountered a minor problem that I want to report. MatlabStan makes use of the function nansum in StanFit.m, which isn’t included in Matlab (anymore?). This is easily solved b…

[Previous page](https://discourse.mc-stan.org/c/interfaces/other-interfaces/31.md)

[Next page](https://discourse.mc-stan.org/c/interfaces/other-interfaces/31.md?page=2)
