About

This is an experimental site generated by Darren Irwin on 16 May 2023.

Quarto can be used to write formatted text along with snippets of runnable code from Julia (or Python, R, etc.).

Some Julia code:

import Pkg; Pkg.add("Plots"); Pkg.add("RCall")
using Plots
f(x) = x^3 + 2x^2 - 7x + 35
plot(f)

You can even run R from Julia:

using RCall
R"""
x <- c(1, 3, 5, 6, 7, 9, 11, 13)
y <- x + rnorm(length(x))
plot(x, y, type = "b", col = "blue")
y
"""

RObject{RealSxp}
[1]  3.328594  3.760755  4.298797  6.514944  5.771430 10.440508 11.232091
[8] 12.120423