Roxygen comments were fine, but needed to run devtools::document() to update NAMESPACE file with stats::var import and fix following NOTE from R CMD check:
* checking R code for possible problems ... NOTE
dist_calc: no visible global function definition for ‘var’
Undefined global functions or variables:
var
Consider adding
importFrom("stats", "var")
to your NAMESPACE file.
Roxygen comments were fine, but needed to run
devtools::document()
to updateNAMESPACE
file withstats::var
import and fix followingNOTE
fromR CMD check
: