R/globals.R

#' @import
#'   ggplot2
#'   stats
#'
#' @importFrom cluster silhouette
#' @importFrom dendextend set %>%
#' @importFrom fdrtool rhalfnorm
#' @importFrom MASS fractions
#' @importFrom gemtc mtc.network mtc.data.studyrow mtc.nodesplit.comparisons
#' @importFrom ggfittext geom_fit_text
#' @importFrom ggpubr ggarrange
#' @importFrom ggrepel geom_text_repel
#' @importFrom grDevices rainbow
#' @importFrom heatmaply heatmaply
#' @importFrom igraph count_components distances E layout_in_circle make_graph plot.igraph V
#' @importFrom knitr kable
#' @importFrom reshape2 melt
#' @importFrom R2jags jags autojags
#' @importFrom scales hue_pal rescale percent
#' @importFrom stringr str_wrap
#' @importFrom writexl write_xlsx
#' @importFrom utils combn packageDescription

.onAttach <- function (libname, pkgname) {
  welcome <- paste0("Loading 'rnmamod', version",
                    " ", packageDescription("rnmamod")$Version,
                    ". Welcome to Network Meta-analysis with",
                    " " , "Missing Participants! ^_^")
  packageStartupMessage(welcome)
}

utils::globalVariables(c("active",
                         "analysis",
                         "capture.output",
                         "char",
                         "char1",
                         "char2",
                         "char3",
                         "characteristic",
                         "cluster",
                         "clusters",
                         "comp",
                         "compar",
                         "comparison",
                         "Comparison",
                         "DIC",
                         "diss",
                         "EM",
                         "em_ref00",
                         "evidence",
                         "frail",
                         "index",
                         "input0",
                         "interval",
                         "intervention",
                         "label",
                         "leverage",
                         "lower",
                         "m_prop",
                         "num_trials",
                         "Order",
                         "outcome",
                         "perc",
                         "perc2",
                         "point",
                         "poor",
                         "results",
                         "risk",
                         "sd_value",
                         "signed_dev",
                         "signed_dev_o",
                         "sil_width",
                         "size",
                         "stat_sign",
                         "study",
                         "studlab",
                         "total",
                         "total_dissimilarity",
                         "treatment",
                         "treatment1",
                         "treat1",
                         "treat2",
                         "trial",
                         "type",
                         "upper",
                         "value",
                         "value2",
                         "value_cum",
                         "value_rank",
                         "value_sucra",
                         "Var1",
                         "Var2",
                         "x",
                         "y"))

#Sys.setenv(`_R_S3_METHOD_REGISTRATION_NOTE_OVERWRITES_` = "false")
Sys.setenv(JAGS_HOME = "C:/Program Files/JAGS/JAGS-4.3.1")
Sys.setenv(JAGS_ROOT = "C:/Program Files/JAGS/JAGS-4.3.1")

Try the rnmamod package in your browser

Any scripts or data that you put into this service are public.

rnmamod documentation built on May 29, 2024, 2:44 a.m.