harrelfe / Hmisc

Harrell Miscellaneous
Other
205 stars 81 forks source link

Another `globalVariables()` needs `utils::globalVariables()` #119

Open HenrikBengtsson opened 4 years ago

HenrikBengtsson commented 4 years ago

There's one more globalVariables() that needs utils::globalVariables();

https://github.com/harrelfe/Hmisc/blob/44f15e5587d0d88acbfd8969ab3e47706e1e24be/R/na.delete.s#L80

Compare with:

https://github.com/harrelfe/Hmisc/blob/b8b24ea72a3ff398bb657654043d1945308bc746/R/ggfreqScatter.r#L114

PS. I discovered this when doing R CMD check on an in-house package;

* checking R code for possible problems ... NOTE
  Error in globalVariables("naresid.omit") : 
    could not find function "globalVariables"
  Error: unable to load R code in package ‘Hmisc’