Correct NOTE in R CMD check for a global variable and update documentation

1 job for hotfix-documentation_fixes
in 38 seconds, using 0 compute credits, and was queued for 3 seconds