简体   繁体   中英

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 . Does anyone know how to perform the equivalent action in Stan? All I know is that Stan uses // in place of R's # . I've tried Ctrl + Shift + / / Cmd + Shift + / , to no avail.

Thanks so much for any help: :)

You can create a comment within your Stan code by using the following:

/* 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM