Skip to content

Commit

Permalink
Start to use build_app_title to create app title (#116)
Browse files Browse the repository at this point in the history
Updates the teal.gallery apps to use the `build_app_title` helper
function.
No need to worry about the renv.lock files as they will be auto-updated
anyway.
  • Loading branch information
vedhav authored Jan 4, 2024
1 parent dd80725 commit 76d5e7a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion RNA-seq/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ app <- init(
mae_name = "MAE"
)
),
title = build_app_title("RNA-Seq Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("RNA-Seq Analysis Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app focusing on analysis of RNA-seq data with teal.modules.hermes"
Expand Down
2 changes: 1 addition & 1 deletion basic-teal/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ app <- init(
teal_slice(dataname = "IRIS", varname = "Species", multiple = FALSE)
),
modules = modules(example_module()),
title = build_app_title("Basic Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Basic Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"My first teal app"
Expand Down
5 changes: 1 addition & 4 deletions early-dev/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,9 @@ app <- init(
plot_height = c(1200, 400, 5000)
)
),
title = build_app_title("Early Development Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(
tags$link(rel = "shortcut icon", href = nest_logo),
tags$title("Early Development Analysis Teal Demo App")
),
tags$span(
style = "font-size: 30px;",
"Example teal app focusing on analysis of early-phase clinical trial data with teal.osprey"
Expand Down
2 changes: 1 addition & 1 deletion efficacy/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ app <- init(
paramcd = cs_paramcd_qs
)
),
title = build_app_title("Efficacy Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Efficacy Analysis Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app focusing on efficacy analysis of clinical trial data with teal.modules.clinical"
Expand Down
2 changes: 1 addition & 1 deletion exploratory/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ app <- init(
plot_width = c(600L, 200L, 2000L)
)
),
title = build_app_title("Exploratory Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Exploratory Analysis Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app for general dataset exploration with teal.modules.general"
Expand Down
2 changes: 1 addition & 1 deletion longitudinal/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,9 @@ app <- teal::init(
)
)
),
title = build_app_title("Longitudinal Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Longitudinal Analysis Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app focusing on analysis of longitudinal clinical trial data with teal.goshawk"
Expand Down
2 changes: 1 addition & 1 deletion patient-profile/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,9 @@ app <- init(
)
)
),
title = build_app_title("Patient Profile Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Patient Profile Analysis Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app focusing on patient-level analysis of clinical trial data with teal.modules.clinical"
Expand Down
2 changes: 1 addition & 1 deletion python/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ app <- teal::init(
)
)
),
title = build_app_title("Python Dataset Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Python Dataset Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app using python dataset connector"
Expand Down
2 changes: 1 addition & 1 deletion safety/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,9 @@ app <- teal::init(
plot_height = c(1000L, 200L, 4000L)
)
),
title = build_app_title("Safety Analysis Teal Demo App", nest_logo),
header = tags$span(
style = "display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px 0;",
tags$head(tags$link(rel = "shortcut icon", href = nest_logo), tags$title("Safety Analysis Teal Demo App")),
tags$span(
style = "font-size: 30px;",
"Example teal app focusing on safety analysis of clinical trial data with teal.modules.clinical"
Expand Down

0 comments on commit 76d5e7a

Please sign in to comment.