R/global.R

#' \code{visR} package
#'
#' @docType package
#' @name visR Global
#' @keywords internal
#'
#' @description Set global variables
NULL


## Quiets concerns of R CMD check re: the .'s that appear in pipelines
## For "visible binding note solution" see
## here \href{https://github.com/STAT545-UBC/Discussion/issues/451}
## TODO: move to more maintainable solution
if (getRversion() >= "2.15.1") {
  utils::globalVariables(
    c(
      "est.lower",
      "est.upper",
      "strata",
      "n.censor",
      "time",
      "est",
      "unit",
      "LegendWidth",
      "any_of",
      "y_values",
      "statistic",
      "quantile",
      "surv",
      "std.err",
      "lower",
      "upper",
      "variable",
      "value",
      ".",
      "qmax",
      "tmax",
      "tmin",
      "quantity",
      "vmin",
      "n.risk",
      "label.y",
      "label.x",
      "min_time",
      "n.event",
      "values",
      "matches",
      ":=",
      "summary_id",
      "everything",
      "rename_at",
      "vars",
      "select",
      "N",
      "median",
      "sd",
      "asis_output",
      "write.table",
      "n.risk",
      "n.event",
      "n_distinct",
      "Remaining N",
      "Excluded N",
      "Criteria",
      "Condition"
    )
  )
}

Try the visR package in your browser

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

visR documentation built on Nov. 21, 2023, 1:07 a.m.