Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-navarro committed Mar 13, 2024
1 parent 626d155 commit ccdf0e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions R/launch_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ launch_app <- function(
"resources",
system.file("resources", package = "calmr.app")
)
ui <- calmr_ui(
analytics_file = NULL
)
ui <- calmr_ui()
server <- calmr_server()
shiny::runApp(list(ui = ui, server = server),
display.mode = "normal", launch.browser = browser
Expand Down
9 changes: 5 additions & 4 deletions R/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
#' @param analytics_file A path to google analytics.
#' Default is NULL, in which case, no analytics are pushed.
#' @export
calmr_ui <- function(
analytics_file = "inst/resources/google_analytics.html") {
if (!is.null(analytics_file)) {
analytics <- htmltools::includeHTML(analytics_file)
calmr_ui <- function(use_analytics = FALSE) {
if (use_analytics) {
analytics <- htmltools::includeHTML(
"inst/resources/google_analytics.html"
)
} else {
analytics <- htmltools::HTML("")
}
Expand Down
2 changes: 1 addition & 1 deletion man/calmr_ui.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ccdf0e6

Please sign in to comment.