Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add summary #80

Merged
merged 9 commits into from
Sep 30, 2024
Merged

Add summary #80

merged 9 commits into from
Sep 30, 2024

Conversation

nmercadeb
Copy link
Contributor

No description provided.

@nmercadeb nmercadeb linked an issue Sep 25, 2024 that may be closed by this pull request
R/appStatic.R Outdated
@@ -22,6 +25,12 @@ exportStaticApp <- function(result = emptySummarisedResult(),
omopgenerics::assertLogical(open, length = 1)
omopgenerics::assertCharacter(logo, length = 1, null = TRUE)
omopgenerics::assertCharacter(title, length = 1)
omopgenerics::assertLogical(summary, length = 1)
if (summary) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have this in an internal function? Then if we expand is easier to deal with it?

expect_true("shiny" %in% list.files(tdir))
expect_snapshot(uiStatic(choices = getChoices(result), summary = capture.output(summary(result), type = "message"), logo = NULL) |> cat(sep = "\n"))
expect_snapshot(uiStatic(choices = getChoices(result), summary = capture.output(summary(result), type = "message"), logo = "HDS") |> cat(sep = "\n"))
unlink(paste0(tdir, "/shiny/"), recursive = TRUE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no tests with summary = FALSE

@nmercadeb
Copy link
Contributor Author

@catalamarti ready

@catalamarti catalamarti merged commit 105bda3 into main Sep 30, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add Summary tab
2 participants