=== Quarterly Sales Report ===
Total Annual Sales: $654K
Average per Quarter: $163.5K
Q1 to Q4 Growth: 33.1%
Best Quarter: Q4 ($189K)
Sometimes you want a clean, narrative-focused document where readers see only results—not code. Setting show-code-inline: false removes code from its original positions while preserving all output. The complete source code moves to the appendix.
This approach works well for executive summaries, journal articles, or any document where the story matters more than the implementation.
Our analysis examines sales performance across four quarters:
=== Quarterly Sales Report ===
Total Annual Sales: $654K
Average per Quarter: $163.5K
Q1 to Q4 Growth: 33.1%
Best Quarter: Q4 ($189K)
=== Vehicle Performance Summary ===
Miles per Gallon:
Min. 1st Qu. Median Mean 3rd Qu. Max.
10.40 15.43 19.20 20.09 22.80 33.90
Horsepower:
Min. 1st Qu. Median Mean 3rd Qu. Max.
52.0 96.5 123.0 146.7 180.0 335.0
Notice how the sections above show only the output—no code blocks interrupt the narrative. Readers who want to see the implementation can find everything in the appendix.
extensions:
regurgitate:
show-code-inline: false# Quarterly sales data (in thousands)
quarters = ["Q1", "Q2", "Q3", "Q4"]
sales = [142, 168, 155, 189]
total = sum(sales)
average = total / len(sales)
growth = (sales[-1] - sales[0]) / sales[0] * 100
print("=== Quarterly Sales Report ===")
print(f"Total Annual Sales: ${total}K")
print(f"Average per Quarter: ${average:.1f}K")
print(f"Q1 to Q4 Growth: {growth:.1f}%")
print(f"Best Quarter: {quarters[sales.index(max(sales))]} (${max(sales)}K)")=== Quarterly Sales Report ===
Total Annual Sales: $654K
Average per Quarter: $163.5K
Q1 to Q4 Growth: 33.1%
Best Quarter: Q4 ($189K)
# Summary statistics for the built-in mtcars dataset
cat("=== Vehicle Performance Summary ===\n\n")
cat("Miles per Gallon:\n")
print(summary(mtcars$mpg))
cat("\nHorsepower:\n")
print(summary(mtcars$hp))=== Vehicle Performance Summary ===
Miles per Gallon:
Min. 1st Qu. Median Mean 3rd Qu. Max.
10.40 15.43 19.20 20.09 22.80 33.90
Horsepower:
Min. 1st Qu. Median Mean 3rd Qu. Max.
52.0 96.5 123.0 146.7 180.0 335.0