Re: [R] R CMD check: no visible binding for global variable

2011-05-16 Thread William Dunlap
Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of swaraj basu > Sent: Monday, May 16, 2011 11:06 AM > To: r-help@r-project.org > Subject: [R] R CMD check: no visible binding f

Re: [R] R CMD check: no visible binding for global variable

2011-05-16 Thread Rolf Turner
Follow-up to my previous message; just remembered another work-around for the ``no visible binding'' note. Wrap up your calls that involve "annotIndex" in text strings and then evaluate these strings. E.g.: xxx <- "y <- x + annotIndex" eval(parse(text=xxx)) That will fool the package

Re: [R] R CMD check: no visible binding for global variable

2011-05-16 Thread Rolf Turner
On 17/05/11 06:05, swaraj basu wrote: Dear All, I have built a package which has a data.frame "annotIndex.rda in its "data" folder. I am using this data frame within two functions in my package. Though my package works fine, yet when I do a

[R] R CMD check: no visible binding for global variable

2011-05-16 Thread swaraj basu
Dear All, I have built a package which has a data.frame "annotIndex.rda in its "data" folder. I am using this data frame within two functions in my package. Though my package works fine, yet when I do a R CMD check to my packag