Skip to content

Commit

Permalink
23.7.11.1
Browse files Browse the repository at this point in the history
check gifski before launching the shiny app
  • Loading branch information
Sciurus365 committed Jul 11, 2023
1 parent 9267afb commit 2faa418
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions DESCRIPTION
Expand Up @@ -39,6 +39,7 @@ Imports:
tibble,
tidyr
Suggests:
gifski,
transformr
Encoding: UTF-8
LazyData: true
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
@@ -1,3 +1,10 @@
# Development version

- Bug-fix for the Shiny app (`shiny_Isingland_MDD()`):
- Load the data to the Shiny app environment;
- Check if `gifski` is installed, which is required to render the animations
(also added `gifski` as a suggested package).

# Isinglandr 0.1.0

- Initial release.
2 changes: 2 additions & 0 deletions R/shiny.R
Expand Up @@ -115,6 +115,8 @@ shiny_ui <- function() {
#' @export
#' @return This function opens a Shiny app session without a return value.
shiny_Isingland_MDD <- function(...) {
rlang::check_installed("gifskii", reason = "to render the animation in the Shiny app.")

app <- shiny::shinyApp(shiny_ui, shiny_server)
shiny::runApp(app)
}

0 comments on commit 2faa418

Please sign in to comment.