Browse Source

Code de génération du rapport dans un chunk isolé

master
Maxime Wack 7 years ago
parent
commit
790cb9e0d1
1 changed files with 17 additions and 15 deletions
  1. +17
    -15
      index.rmd

+ 17
- 15
index.rmd View File

@@ -270,21 +270,6 @@ exhau <- reactive({
})
})

output$report <- downloadHandler(filename = "bilan.html",
content = function(file)
{
rmarkdown::render("cloture.Rmd",
output_file = file,
params = list(annee = input$annee,
mois = input$mois,
rum = rum(),
rss = rss(),
exhau = exhau(),
exhau_pims = exhau_pims(),
Ovalide = tibble::data_frame(nom = names(Ovalide()), tab = Ovalide()),
OvalideP = tibble::data_frame(nom = names(OvalideP()), tab = OvalideP())))
})

mois_label <- c("Janvier",
"Février",
"Mars",
@@ -318,6 +303,23 @@ periode <- reactive({

```

```{r report}
output$report <- downloadHandler(filename = "bilan.html",
content = function(file)
{
rmarkdown::render("cloture.Rmd",
output_file = file,
params = list(annee = input$annee,
mois = input$mois,
rum = rum(),
rss = rss(),
exhau = exhau(),
exhau_pims = exhau_pims(),
Ovalide = tibble::data_frame(nom = names(Ovalide()), tab = Ovalide()),
OvalideP = tibble::data_frame(nom = names(OvalideP()), tab = OvalideP())))
})
```

## Rapport

### Production


Loading…
Cancel
Save