I'm building an R package for the first time and am having some trouble. I am doing an R CMD Check and am getting the following error:
get.AlignedPositions: no visible global function definition for 'subject'
I am not sure what is causing this. I don't even have a "subject" variable in my code. The code is rather lengthy so I rather not paste all of it unless someone asks in a comment. Is there something specific I should look for? The only thing I can think of is that I have a line like this:
alignment <-pairwiseAlignment(pattern = canonical.protein, subject=protein.extracted, patternQuality=patternQuality,
subjectQuality=subjectQuality,type = type, substitutionMatrix= substitutionMatrix,
fuzzyMatrix=fuzzyMatrix,gapOpening=gapOpening,gapExtension=gapExtension,
scoreOnly=scoreOnly)
but subject is defined by the pairwiseAlignment
function in the Biostrings package. Thank you for your help!
get.AlignedPosition
, you might be able to spotsubject
being used as a function, along the lines ofsubject(foo)
. The Bioconductor developer mailing list is designed to serve (nascent, too) Bioconductor developers. – Martin Morgansubject <- NA
thenrm(subject)
in the next line. Then do a build again and see what happens. – Maiasaura