R/zzz.R

# R CMD check does not like the variable used by foreach::foreach()
#
# checking R code for possible problems ... NOTE
# cycle_npreg_mstep: no visible binding for global variable 'g'
# data_transform_quantile: no visible binding for global variable 'g'
# fit_cyclical_many: no visible binding for global variable 'g'
# Undefined global functions or variables: g   
#
# Hack to make the NOTE go away:
# https://stackoverflow.com/questions/9439256/how-can-i-handle-r-cmd-check-no-
# visible-binding-for-global-variable-notes-when
#
#' @importFrom utils globalVariables
if (getRversion() >= "2.15.1")
  globalVariables("g")
jhsiao999/peco documentation built on Nov. 21, 2020, 5:34 p.m.