[BioC] Making data visible in packages (no visible binding for global variable ...)

Richard Pearson richard.pearson at postgrad.manchester.ac.uk
Tue Oct 28 10:37:39 CET 2008


Adi

A rather inelegant way to avoid the "no visible binding" message is:

X <- NULL
data(myX)

Regards

Richard


Tarca, Adi wrote:
> Hi all,
> I am trying to write a package that contains one function MYF which
> requires some data (e.g. a matrix X).
> I put the matrix X in the \data folder as a myX.Rdata file. The function
> MYF makes a data(myX) call to make X available within MYF before doing
> some computations.
> The resulting package gets installed and runs fine but when I do the R
> CMD CHECK I get "no visible binding for global variable X".
> I have two questions:
> A) is there a better way to make X visible within MYF rather than making
> a data() call
> B) wht should be done to fix the "no visible binding for global
> variable".
> 
> Thanks,
> 
> Adi Tarca
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
> 

-- 
Richard D. Pearson             richard.pearson at postgrad.manchester.ac.uk
School of Computer Science,    http://www.cs.man.ac.uk/~pearsonr
University of Manchester,      Tel: +44 161 275 6178
Oxford Road,                   Mob: +44 7971 221181
Manchester M13 9PL, UK.        Fax: +44 161 275 6204



More information about the Bioconductor mailing list