echo = true: Echo the code in the output document. If false the source code will be hidden.
results = "markup": The output format of the printed results. "markup" for literal block, "hidden" for hidden results, or anything else for raw output (I tend to use "tex" for Latex and "rst" for rest). Raw output is useful if you want to e.g. create tables from code chunks.
term = false: If true the output emulates a REPL session. Otherwise only stdout and figures will be included in output.
wrap = true: Wrap long lines from output.
line_width = 75: Line width for wrapped lines.
hold = false: Hold all results until the end of the chunk.
You can set the default chunk options (and weave arguments) for a document using weave_options key in YAML Header Configuration. E.g. to set the default out_width of all figures you can use:
eval = true: Evaluate the code chunk. If false the chunk won’t be executed.
error = true: If trueweave won't stop on errors and rather they will be included in output document. If false, weave will halt on any of un-caught errors.
cache = false: Cache results, depending on cache parameter on weave function.
tangle = true: Set tangle to false to exclude chunk from tangled code.
echo = true: Echo the code in the output document. If false the source code will be hidden.
results = "markup": The output format of the printed results. "markup" for literal block, "hidden" for hidden results, or anything else for raw output (I tend to use "tex" for Latex and "rst" for rest). Raw output is useful if you want to e.g. create tables from code chunks.
term = false: If true the output emulates a REPL session. Otherwise only stdout and figures will be included in output.
wrap = true: Wrap long lines from output.
line_width = 75: Line width for wrapped lines.
hold = false: Hold all results until the end of the chunk.
You can set the default chunk options (and weave arguments) for a document using weave_options key in YAML Header Configuration. E.g. to set the default out_width of all figures you can use:
---
weave_options:
out_width : 50%
---
You can also set or change the default chunk options for a document either before weave using the set_chunk_defaults function.
set_chunk_defaults!(k::Symbol, v::Any) = DEFAULT_PARAMS[k]= v
set_chunk_defaults!(kv::Pair{Symbol,Any}...) = for (k,v) in kv; set_chunk_defaults!(k, v); end
-set_chunk_defaults!(opts::AbstractDict{Symbol,Any}) = merge!(DEFAULT_PARAMS, opts)
Set default options for code chunks, use get_chunk_defaults to see the current values.
E.g.: all the three examples below will set default dpi to 200 and fig_width to 8: