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’
There's one more
globalVariables()
that needsutils::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;