x <- 1:10
mean(x)[1] 5.5
When rendered, the ripper extension will extract the code blocks and create separate script files for each programming language. This example shows the extension’s default behaviors given the configuration below to a Quarto document with R and Python code blocks.
---
title: "Minimal Example"
format: html
filters:
- ripper
---x <- 1:10
mean(x)[1] 5.5
numbers = list(range(1, 11))
print(sum(numbers) / len(numbers))5.5
The code for this document can be found here: