Code

R

Code chunks are set, by default in _quarto.yml, not to echo or print messages or warnings. These settings can be changed in that file.

An example R code chunk, with echoing enabled, is below:

2 + 2
[1] 4

Other Languages

Quarto also supports other languages, such as Python (via the reticulate package) and Julia (via the JuliaCall package). Requires installation of these languages.

Python:

import numpy as np

a = np.array([1, 2, 3, 4, 5])

print(a)
[1 2 3 4 5]

Julia:

using Plots

plot(sin, 
     x->sin(2x), 
     0, 
     2π, 
     leg=false, 
     fill=(0,:lavender))