Skip to content

Commit

Permalink
Merge pull request #283 from OHDSI/removing-help-sections
Browse files Browse the repository at this point in the history
remove help & information sections in most modules due to About modul...
  • Loading branch information
nhall6 committed May 20, 2024
2 parents 8f16b69 + 7ab491b commit 910b09c
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 70 deletions.
5 changes: 1 addition & 4 deletions R/characterization-aggregateFeatures.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ characterizationAggregateFeaturesViewer <- function(id) {

shiny::div(

infoHelperViewer(
id = "helper",
helpLocation= system.file("characterization-www", "help-OutcomeStratified.html", package = utils::packageName())
),



# module that does input selection for a single row DF
Expand Down
8 changes: 4 additions & 4 deletions R/characterization-cohorts.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ characterizationTableViewer <- function(id) {
ns <- shiny::NS(id)
shiny::div(

infoHelperViewer(
id = "helper",
helpLocation= system.file("characterization-www", "help-targetViewer.html", package = utils::packageName())
),
# infoHelperViewer(
# id = "helper",
# helpLocation= system.file("characterization-www", "help-targetViewer.html", package = utils::packageName())
# ),


# module that does input selection for a single row DF
Expand Down
6 changes: 1 addition & 5 deletions R/characterization-dechallengeRechallenge.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ characterizationDechallengeRechallengeViewer <- function(id) {
ns <- shiny::NS(id)
shiny::div(

# helper component module
infoHelperViewer(
id = "helper",
helpLocation= system.file("characterization-www", "help-dechallengeRechallenge.html", package = utils::packageName())
),


# input component module
inputSelectionViewer(id = ns('input-selection')),
Expand Down
5 changes: 1 addition & 4 deletions R/characterization-incidence.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ characterizationIncidenceViewer <- function(id) {
ns <- shiny::NS(id)
shiny::div(

infoHelperViewer(
id = "helper",
helpLocation= system.file("characterization-www", "help-incidenceRate.html", package = utils::packageName())
),


inputSelectionViewer(
id = ns("input-selection-results")
Expand Down
6 changes: 1 addition & 5 deletions R/characterization-timeToEvent.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ characterizationTimeToEventViewer <- function(id) {
ns <- shiny::NS(id)
shiny::div(

infoHelperViewer(
id = "helper",
helpLocation= system.file("characterization-www", "help-timeToEvent.html", package = utils::packageName())
),


# input component module
inputSelectionViewer(id = ns('input-selection')),

Expand Down
9 changes: 1 addition & 8 deletions R/cohort-generator-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ cohortGeneratorViewer <- function(id) {
width = '100%',
title = shiny::span( shiny::icon("user-gear"),'Cohorts'),
solidHeader = TRUE,

shinydashboard::box(
collapsible = TRUE,
collapsed = TRUE,
title = shiny::span( shiny::icon("circle-question"), "Help & Information"),
width = "100%",
shiny::htmlTemplate(system.file("cohort-generator-www", "cohort-generator.html", package = utils::packageName()))
),


shiny::tabsetPanel(
id = ns("cohortGeneratorTabs"),
Expand Down
5 changes: 1 addition & 4 deletions R/cohort-method-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ cohortMethodViewer <- function(id) {
title = shiny::span( shiny::icon("chart-column"), 'Cohort Method'),
solidHeader = TRUE,

infoHelperViewer(
id = "helper",
helpLocation= system.file("cohort-method-www", "cohort-method.html", package = utils::packageName())
),


# Input selection of T, C and Os
inputSelectionViewer(ns("input-selection")),
Expand Down
10 changes: 1 addition & 9 deletions R/datasources-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,7 @@ datasourcesViewer <- function(id) {
width = "100%",
title = shiny::span(shiny::icon("database"), "Data Sources"),
solidHeader = TRUE,

shinydashboard::box(
collapsible = TRUE,
collapsed = FALSE,
title = shiny::span( shiny::icon("circle-question"), "Help & Information"),
width = "100%",
shiny::htmlTemplate(system.file("datasources-www", "datasources.html", package = utils::packageName()))
),


shiny::tabsetPanel(
type = 'pills',
id = ns('mainPanel'),
Expand Down
6 changes: 1 addition & 5 deletions R/evidence-synth-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ evidenceSynthesisViewer <- function(id=1) {
width = 12,
title = shiny::span( shiny::icon("sliders"), 'Evidence Synthesis'),
solidHeader = TRUE,

infoHelperViewer(
id = "helper",
helpLocation= system.file("evidence-synthesis-www", "evidence-synthesis.html", package = utils::packageName())
),


# add two buttons - CM or SCCs
shiny::tabsetPanel(
Expand Down
9 changes: 1 addition & 8 deletions R/phevaluator-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@ phevaluatorViewer <- function(id) {
width = "100%",
title = shiny::span(shiny::icon("gauge"), "PheValuator"),
solidHeader = TRUE,

shinydashboard::box(
collapsible = TRUE,
collapsed = FALSE,
title = shiny::span( shiny::icon("circle-question"), "Help & Information"),
width = "100%",
shiny::htmlTemplate(system.file("phevaluator-www", "phevaluator.html", package = utils::packageName()))
),


shinydashboard::box(
collapsible = TRUE,
Expand Down
4 changes: 0 additions & 4 deletions R/sccs-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ sccsView <- function(id = "sccs-module") {
title = shiny::span( shiny::icon("people-arrows"), 'Self Controlled Case Series'),
solidHeader = TRUE,

infoHelperViewer(
id = "helper",
helpLocation= system.file("sccs-www", "sccs.html", package = utils::packageName())
),

inputSelectionViewer(ns("input-selection-sccs")),

Expand Down
10 changes: 0 additions & 10 deletions man/OhdsiShinyModules.Rd

This file was deleted.

0 comments on commit 910b09c

Please sign in to comment.