prep_call_sampler 在 Linux 使用 R 的 Stan 程序中找不到

prep_call_sampler not found in Stan program in Linux using R

我有一个简单的多级模型 .stan 程序,运行 在 Windows 中很好用。但是当我 运行 时,我在 Linux 中遇到了这个奇怪的错误。

'prep_call_sampler not found'

我试图找到问题的根源,更新软件包并在网上查找解决方案。最后,我在 STAN forum

中看到一篇博客 post 描述了类似的问题

解决方案是简单地将 .stan 程序中的 a*b 替换为 a * b,模型在 linux 中运行良好。只是想分享这个,以防其他人在 linux 中使用 R 编写 运行 stan 程序时遇到类似问题。