R/zzz.R

#' Function to squash R check's global variable notes. 
#' 
if (getRversion() >= "2.15.1") {
  
  # What variables are causing issues?
  variables <- c(
    ".", "variable", ".draw", "draw", ".chain", "chain", ".iteration", 
    "value_predict", "value", "id", "n", "change_point", "intercept"
  )
  
  # Squash the note
  utils::globalVariables(variables)
  
}
skgrange/schanger documentation built on Feb. 15, 2021, 5:41 a.m.