Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions workspaces/quarto_inline_output/parameters.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Parameters"
params:
answer: !r 6 * 7
alpha: 0.1
ratio: 0.1
year:
label: "Year"
value: 2026
input: slider
min: 2010
max: 2050
step: 1
sep: ""
---

# The Answer

This should be 42, which is the result of $6 * 7$, and tests evaluating R expressions as parameters.

```{r}
params$answer
```

# A Small Ratio

This should be 0.01, and tests simple scalar parameters.

```{r}
params$alpha * params$ratio
```

# The Year

This should be 2026, and tests the full parameter declaration format that includes UI information.

```{r}
params$year
```