Nothing
# BiasCorrector: A GUI to Correct Measurement Bias in DNA Methylation Analyses
# Copyright (C) 2019-2022 Lorenz Kapsner
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#' @title module_info_server
#'
#' @inheritParams module_calibrationfile_server
#'
#' @return The function returns a shiny server module.
#'
#' @seealso \url{https://shiny.rstudio.com/articles/modules.html}
#'
#' @examples
#' if (interactive()) {
#' rv <- list()
#' logfilename <- paste0(tempdir(), "/log.txt")
#' shiny::callModule(
#' module_info_server,
#' "moduleInfo",
#' rv = rv,
#' logfilename = logfilename
#' )
#' }
#'
#' @export
#'
# module_info_server
module_info_server <- function(input,
output,
session,
rv,
input_re) {
output$citation_correction <- renderPrint({
utils::citation("rBiasCorrection")
})
output$citation_corrector <- renderPrint({
utils::citation("BiasCorrector")
})
}
#' @title module_info_ui
#'
#' @param id A character. The identifier of the shiny object
#'
#' @return The function returns a shiny ui module.
#'
#' @seealso \url{https://shiny.rstudio.com/articles/modules.html}
#'
#' @examples
#' if (interactive()) {
#' shinydashboard::tabItems(
#' shinydashboard::tabItem(
#' tabName = "info",
#' module_info_ui(
#' "moduleInfo"
#' )
#' )
#' )
#' }
#'
#' @export
#'
# module_info_ui
module_info_ui <- function(id) {
ns <- NS(id)
tagList(
fluidRow(
box(
title = "Info",
tabsetPanel(
tabPanel(
title = "Citation",
h5(paste0("If you use these 'BiasCorrector' or ",
"'rBiasCorrection' packages to correct ",
"DNA methylation data for a publication, ",
"please cite them as follows:")),
h5(tags$b("rBiasCorrection:")),
verbatimTextOutput(ns("citation_correction")),
h5(tags$b("BiasCorrector:")),
verbatimTextOutput(ns("citation_corrector"))
),
tabPanel(
title = "Version",
h5(paste0("rBiasCorrection: ",
utils::packageVersion("rBiasCorrection")
)),
h5(paste0("BiasCorrector: ",
utils::packageVersion("BiasCorrector")
))
)
),
width = 12
)
)
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.