View source: R/code_formatting.R
Format Stan code
1 2 3 4 5 6 7 8 9 10 | format_code(
code = "",
file = NULL,
use_stanc = FALSE,
overwrite_file = FALSE,
place_includes = FALSE,
stanc_path = NULL,
spaces = 2,
verbose = FALSE
)
|
code |
Stan code as a string. Ignored if |
file |
File that contains Stan code. If this is
NULL, |
use_stanc |
Should the code be formatted using
|
overwrite_file |
Should the file that was given as input be overwritten
by the formatted code? It is not recommended to set this to |
place_includes |
Should |
stanc_path |
Path to the parent directory of |
spaces |
Number of spaces to use for indenting (has no effect if
|
verbose |
Should some informational messages be printed? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.