use globalVariables() conditionally to suppress warnings from codetools during R CMD check