R/globals.R

#' @title Declare global variables for non-standard evaluation
#' @description Suppresses R CMD check notes about variables used in data manipulation and plotting expressions (e.g., with dplyr or ggplot2), as well as imported functions referenced without explicit namespace.
#' @details This is necessary for variables and functions such as \code{ID}, \code{xor_shape_detected}, \code{xor_pattern}, \code{future.apply}, and \code{pbmcapply} that are used in pipelines or evaluated indirectly.
#' @keywords internal
#' @importFrom utils globalVariables
if (getRversion() >= "2.15.1") {
  utils::globalVariables(c(
    "ID", "xor_shape_detected", "xor_pattern",
    "pair_id", "variable", "value", "x", "y",
    "x_q1", "x_q2", "y_q1", "y_q2", "chi_sq_p_value",
    "var1_var2", "var1", "var2", "pair_key", "chi_sq_label"
  ))
}

Try the detectXOR package in your browser

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

detectXOR documentation built on June 28, 2025, 1:08 a.m.