R/zzz.R

#' Function to squash R check's global variable notes. 
#' 
#' @name zzz
#' 
if (getRversion() >= "2.15.1") {
  
  # What variables are causing issues?
  variables <- c(
    ".", "variable", "date_start", "value", "bus", "device", "language", "major", 
    "minor", "version_string_short", "nickname", "version_major_minor", 
    "abbreviation", "countryCode", "countryName", "date_api", "daylight_savings", 
    "dst", "gmtOffset", "id", "timestamp", "zoneName", ".attrs", "location", 
    "mountpoint", "playlist", "status", "query", "country", "country_code", 
    "zip", "lat", "lon", "timezone", "formatted"
  )
  
  # Squash the note
  utils::globalVariables(variables)
  
}
skgrange/systemr documentation built on April 18, 2024, 2:23 a.m.