Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hodge committed Feb 15, 2022
1 parent d5812aa commit 551d5e0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ LazyData: true
Depends: R (>= 3.5.0)
Imports: dplyr, forcats, ggplot2, htmlwidgets, leaflet, leafem, leafpop,
lifecycle, lubridate, magrittr, palmerpenguins, plotly, purrr, rlang,
scales, sf, snakecase, stars, stringr, tidyr, tidyselect, viridis
Suggests: DT, glue, knitr, pals, patchwork, rgdal, rgeos, rmarkdown, s2, shiny,
scales, sf, shiny, snakecase, stars, stringr, tidyr, tidyselect, viridis
Suggests: DT, glue, knitr, pals, patchwork, rgdal, rgeos, rmarkdown, s2,
shinycssloaders, tibble
RoxygenNote: 7.1.2
VignetteBuilder: knitr
17 changes: 5 additions & 12 deletions R/shiny_demo.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@
#' @export
shiny_demo <- function(mobile = FALSE) {

if(any(c("shiny", "shinycssloaders", "DT") %in% utils::installed.packages() == FALSE)) {
stop("Please ensure shiny, shinycssloaders and DT packages are installed")
}
demodir <- system.file("shiny", package = "simplevis")

suppressWarnings({

demodir <- system.file("shiny", package = "simplevis")

if (mobile == FALSE) demo <- 1
if (mobile == TRUE) demo <- 2

shiny::runApp(sprintf("%s/%s", demodir, demo))
})
if (mobile == FALSE) demo <- 1
if (mobile == TRUE) demo <- 2

shiny::runApp(sprintf("%s/%s", demodir, demo))
}
14 changes: 7 additions & 7 deletions docs/articles/ggplotly.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ articles:
simplevis: simplevis.html
themes: themes.html
titles: titles.html
last_built: 2022-02-15T00:33Z
last_built: 2022-02-15T00:55Z

0 comments on commit 551d5e0

Please sign in to comment.