Skip to content

Commit

Permalink
Error fix in S report.
Browse files Browse the repository at this point in the history
  • Loading branch information
janlisec committed Oct 19, 2023
1 parent 2aac4f7 commit 3967a1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions R/page_stability.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ page_StabilityUI <- function(id) {
shiny::wellPanel(
sub_header("Save Report"),
shiny::downloadButton(ns("s_Report"), label="Download"),
shiny::p(),
sub_header("Fig.S1 Options"),
shiny::checkboxGroupInput(inputId = ns("FigS1_options"), label = NULL, choices = list("Average by Day" = "slope_of_means", "Annotate plot" = "show_legend")),
shiny::div(style = "margin: 0px;", shiny::radioButtons(inputId = ns("s_sel_dev"), label = NULL, choices = list("2s"="2s", "U_abs"="U"), inline = TRUE)),
shiny::radioButtons(inputId = ns("plot_type"), label = NULL, choices = list("standard"=1, "adjusted"=3), inline = TRUE),
shiny::div(style = "margin-top: -10px;", shiny::radioButtons(inputId = ns("plot_type"), label = NULL, choices = list("standard"=1, "adjusted"=3), inline = TRUE)),
shiny::div(style = "margin-top: -10px;", shiny::radioButtons(inputId = ns("s_sel_dev"), label = NULL, choices = list("2s"="2s", "U_abs"="U"), inline = TRUE)),
shiny::checkboxGroupInput(inputId = ns("s_sel_temp"), label = "Use Temp level", choices = "", inline = TRUE),
shiny::actionButton(inputId = ns("s_switch_arrhenius"), label = "Show Arrhenius", style = "width: 100%; max-width: 160px; font-weight: 700; background-color: rgb(0,175,240); margin-bottom: 10px;")
)
Expand Down Expand Up @@ -239,9 +240,7 @@ page_StabilityServer <- function(id, rv) {
output_file = file,
output_format = rmarkdown::html_document(),
params = list(
"Stability" = shiny::reactiveValuesToList(getValue(rv, "Stability")),
"xlab" = input$FigH1_xlab,
"precision" = rv$a_p("precision")
"Stability" = shiny::reactiveValuesToList(getValue(rv, "Stability"))
),
envir = new.env(parent = globalenv())
)
Expand Down
5 changes: 2 additions & 3 deletions inst/app/www/reports/report_vorlage_stability.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ if (testing) {
} else {
S <- params$Stability
}
browser()
an <- unique(as.character(S[["data"]][,"analyte"]))
an <- as.character(S[["s_vals"]][,"analyte"])
```

This is the table of uncertainties associated with Stability:
Expand Down Expand Up @@ -62,7 +61,7 @@ for (i in 1:length(an)) {
}
```

This is the table of (non rounded) input data:
This is the table of (non rounded) input data from the original file ***`r S[["input_files"]]`***:

```{r FullData, echo=FALSE, comment=NA}
DT::datatable(data = S[["data"]], rownames = NULL, options = list(dom = "t", paging = FALSE))
Expand Down

0 comments on commit 3967a1b

Please sign in to comment.