[英]How do I comment out a block of code in Stan?
This feels like a duplicate question, but I can't find it anywhere here or elsewhere!这感觉像是一个重复的问题,但我在这里或其他地方都找不到它!
So, in R, you can comment out a block of code with Ctrl + Shift + C
/ Cmd + Shift + C
. So, in R, you can comment out a block of code with
Ctrl + Shift + C
/ Cmd + Shift + C
. Does anyone know how to perform the equivalent action in Stan?有谁知道如何在 Stan 中执行等效操作? All I know is that Stan uses
//
in place of R's #
.我只知道 Stan 使用
//
代替 R 的#
。 I've tried Ctrl + Shift + /
/ Cmd + Shift + /
, to no avail.我试过
Ctrl + Shift + /
/ Cmd + Shift + /
,但无济于事。
Thanks so much for any help: :)非常感谢您的帮助::)
You can create a comment within your Stan code by using the following:您可以使用以下命令在您的 Stan 代码中创建注释:
/* this is a comment block
as opposed to a single
line block */
Please see, https://mc-stan.org/docs/2_18/reference-manual/bracketed-comments.html请参阅https://mc-stan.org/docs/2_18/reference-manual/bracketed-comments.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.