---
title: "Report parametrizzato"
author: "DV"
format: html
editor: visual
params: 
  paese: "Afghanistan"
  continente: "Americas"
---

```{r}
```

```{r}
```

```{r}
```

```{r}
knitr::read_chunk("lab_12-report-quarto-parametrico_codice-esterno.R")
```

```{r package_usati}
#| echo: false
#| warning: false
```

```{r prepara_tabella}
```

```{r grafico_paese}
```

```{r}
names(params)
params
params$paese
```

```{r}
gap_data |>
  filter(country == params$paese) |>
  ggplot() +
  aes(x = year, y = life_exp) +
  geom_line()
```

```{r media_continente}
```
