[Rd] R CMD check issue

Therneau, Terry M., Ph.D. therne@u @end|ng |rom m@yo@edu
Mon Apr 6 20:40:46 CEST 2026


I'm doing something less usual in a package (with some help from others).    The big 
picture: I'm solving a particular varianct of hidden Markov models, which involves a 
zillion calls for a matrix exponential and its derivative, and I've been doing everything 
I can think of to speed it up.   The secondary picture is that I don't like to work with 
source code files that go on for page after page, I have a terrible time 
editing/managing/whatever such.

The issue: I end up using an envionment trick to pass along a long list of parameters 
(about 34 vectors or lists), or I should say to make them findable without having to send 
them down the call chain as arguments.   R CMD check flags the pair of function at the end 
of the chain, which actually use them, as each having 34 "no visible binding for global 
variable  xyz" messages.     In the short term I can just live with it, but if I ever want 
to submit to CRAN I'll need something more formal.   I'm happy to give more details to 
whomever might want to pitch in.

PS. The first pass had about 40 such warnings, i.e, these 'spurious' ones along with a 
half dozen misspelled variable names -- I overall like what the check does for me, it's 
just overzealous in this case.

Terry T.

-- 
Terry M Therneau, PhD
Department of Quantitative Health Sciences
Mayo Clinic
therneau using mayo.edu

"TERR-ree THUR-noh"

	[[alternative HTML version deleted]]



More information about the R-devel mailing list